de.phleisch.app.itsucks.persistence.impl
Class BinaryObjectJobSerialization
java.lang.Object
de.phleisch.app.itsucks.persistence.impl.AbstractJobSerialization
de.phleisch.app.itsucks.persistence.impl.BinaryObjectJobSerialization
- All Implemented Interfaces:
- JobSerialization, org.springframework.context.ApplicationContextAware
public class BinaryObjectJobSerialization
- extends AbstractJobSerialization
- implements org.springframework.context.ApplicationContextAware, JobSerialization
This class implements the JobSerialization interface using the
default object.serialize feature.
- Author:
- olli
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BinaryObjectJobSerialization
public BinaryObjectJobSerialization()
serialize
public void serialize(SerializableJobPackage pJobList,
java.io.OutputStream pOutputStream)
throws java.io.IOException
- Description copied from interface:
JobSerialization
- Serializes the given job list to the given output stream.
The list is only written to the stream, the stream will not be closed.
- Specified by:
serialize in interface JobSerialization
- Throws:
java.io.IOException
deserialize
public SerializableJobPackage deserialize(java.io.InputStream pInputStream)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Description copied from interface:
JobSerialization
- Deserializes a job list from the given input stream.
- Specified by:
deserialize in interface JobSerialization
- Returns:
-
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext pContext)
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Copyright © 2008. All Rights Reserved.