|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JobSerialization
Interface for the job serialization. This interface provides functionality to serialize and deserialize multiple jobs. After an job is deserialized, the job factory is used to reinject the dependencies.
| Method Summary | |
|---|---|
SerializableJobPackage |
deserialize(java.io.File pTargetFile)
Deserializes a job list from the given file. |
SerializableJobPackage |
deserialize(java.io.InputStream pInputStream)
Deserializes a job list from the given input stream. |
void |
serialize(SerializableJobPackage pJobList,
java.io.File pTargetFile)
Serializes the given job list to the target file. |
void |
serialize(SerializableJobPackage pJobList,
java.io.OutputStream pOutputStream)
Serializes the given job list to the given output stream. |
void |
setJobFactory(DownloadJobFactory pJobFactory)
Sets the factory to reinject the dependencies back to the deserialzed jobs. |
| Method Detail |
|---|
void serialize(SerializableJobPackage pJobList,
java.io.File pTargetFile)
throws java.lang.Exception
pJobList - pTargetFile -
java.io.IOException
java.lang.Exception
void serialize(SerializableJobPackage pJobList,
java.io.OutputStream pOutputStream)
throws java.lang.Exception
pJobList - pOutputStream -
java.io.IOException
java.lang.Exception
SerializableJobPackage deserialize(java.io.File pTargetFile)
throws java.lang.Exception
pTargetFile -
java.io.IOException
java.lang.ClassNotFoundException
java.lang.Exception
SerializableJobPackage deserialize(java.io.InputStream pInputStream)
throws java.lang.Exception
pInputStream -
java.io.IOException
java.lang.ClassNotFoundException
java.lang.Exceptionvoid setJobFactory(DownloadJobFactory pJobFactory)
pJobFactory -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||