Package org.opencastproject.job.api
Class JobParser
java.lang.Object
org.opencastproject.job.api.JobParser
Marshals and unmarshals
Jobs.-
Method Summary
Modifier and TypeMethodDescriptionstatic JobparseJob(InputStream in) Parses a stream representing aJobstatic JobParses an xml string representing aJobstatic JaxbJobListParses a stream representing aJaxbJobListstatic JaxbJobListparseJobList(String serializedForm) Parses an xml string representing aJaxbJobListstatic StringSerializes the job into a string representation.
-
Method Details
-
parseJob
Parses an xml string representing aJob- Parameters:
serializedForm- The serialized data- Returns:
- The job
- Throws:
IOException
-
parseJob
Parses a stream representing aJob- Parameters:
in- The serialized data- Returns:
- The job
- Throws:
IOException
-
toXml
Serializes the job into a string representation.- Parameters:
job- the job- Returns:
- the job's serialized form
- Throws:
IOException- if parsing fails
-
parseJobList
Parses an xml string representing aJaxbJobList- Parameters:
serializedForm- The serialized data- Returns:
- The job list
- Throws:
IOException
-
parseJobList
Parses a stream representing aJaxbJobList- Parameters:
in- the serialized data- Returns:
- the job list
- Throws:
IOException
-