public class ParserUtil extends 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)
Parses a substitution schedule.
|
public static SubstitutionSchedule parseSubstitutionSchedule(SubstitutionScheduleData data) throws CredentialInvalidException, IOException, org.json.JSONException
CredentialInvalidExceptionIOExceptionorg.json.JSONExceptionparseSubstitutionSchedule(SubstitutionScheduleData, Credential, CookieProvider)public static SubstitutionSchedule parseSubstitutionSchedule(SubstitutionScheduleData data, CookieProvider cp) throws CredentialInvalidException, IOException, org.json.JSONException
CredentialInvalidExceptionIOExceptionorg.json.JSONExceptionparseSubstitutionSchedule(SubstitutionScheduleData, Credential, CookieProvider)public static SubstitutionSchedule parseSubstitutionSchedule(SubstitutionScheduleData data, Credential credential) throws CredentialInvalidException, IOException, org.json.JSONException
CredentialInvalidExceptionIOExceptionorg.json.JSONExceptionparseSubstitutionSchedule(SubstitutionScheduleData, Credential, CookieProvider)public static SubstitutionSchedule parseSubstitutionSchedule(SubstitutionScheduleData data, Credential credential, CookieProvider cp) throws org.json.JSONException, CredentialInvalidException, 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.org.json.JSONException - When there's an error with your JSON configurationCredentialInvalidException - When the Credential you supplied was invalidIOException - When there was another error while loading or parsing the schedule