public class ParserUtil
extends java.lang.Object
| Constructor and Description |
|---|
ParserUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SubstitutionSchedule |
parseSubstitutionSchedule(SubstitutionScheduleData data) |
static SubstitutionSchedule |
parseSubstitutionSchedule(SubstitutionScheduleData data,
CookieProvider cp) |
static SubstitutionSchedule |
parseSubstitutionSchedule(SubstitutionScheduleData data,
Credential credential) |
static SubstitutionSchedule |
parseSubstitutionSchedule(SubstitutionScheduleData data,
Credential credential,
CookieProvider cp,
DebuggingDataHandler handler)
Parses a substitution schedule.
|
public static SubstitutionSchedule parseSubstitutionSchedule(SubstitutionScheduleData data) throws CredentialInvalidException, java.io.IOException, org.json.JSONException
CredentialInvalidExceptionjava.io.IOExceptionorg.json.JSONExceptionparseSubstitutionSchedule(SubstitutionScheduleData, Credential, CookieProvider, DebuggingDataHandler)public static SubstitutionSchedule parseSubstitutionSchedule(SubstitutionScheduleData data, CookieProvider cp) throws CredentialInvalidException, java.io.IOException, org.json.JSONException
CredentialInvalidExceptionjava.io.IOExceptionorg.json.JSONExceptionparseSubstitutionSchedule(SubstitutionScheduleData, Credential, CookieProvider, DebuggingDataHandler)public static SubstitutionSchedule parseSubstitutionSchedule(SubstitutionScheduleData data, Credential credential) throws CredentialInvalidException, java.io.IOException, org.json.JSONException
CredentialInvalidExceptionjava.io.IOExceptionorg.json.JSONExceptionparseSubstitutionSchedule(SubstitutionScheduleData, Credential, CookieProvider, DebuggingDataHandler)public static SubstitutionSchedule parseSubstitutionSchedule(SubstitutionScheduleData data, Credential credential, CookieProvider cp, DebuggingDataHandler handler) throws org.json.JSONException, CredentialInvalidException, java.io.IOException
data - A SubstitutionScheduleData instance containing information about the schedule you
want to parse.credential - A Credential subclass for authentication. If the schedule requires no
authentication, use null.cp - An optional CookieProvider implementation. This can be used if you want to reuse
session cookies the next time you load the schedule. If you don't need it, pass
null.handler - An optional DebuggingDataHandler implementation. If you don't need it, pass
null.org.json.JSONException - When there's an error with your JSON configurationCredentialInvalidException - When the Credential you supplied was invalidjava.io.IOException - When there was another error while loading or parsing the schedule