de.phleisch.app.itsucks.persistence.impl
Class BinaryObjectJobSerialization

java.lang.Object
  extended by de.phleisch.app.itsucks.persistence.impl.AbstractJobSerialization
      extended by 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

Field Summary
 
Fields inherited from class de.phleisch.app.itsucks.persistence.impl.AbstractJobSerialization
mJobFactory
 
Constructor Summary
BinaryObjectJobSerialization()
           
 
Method Summary
 SerializableJobPackage deserialize(java.io.InputStream pInputStream)
          Deserializes a job list from the given input stream.
 void serialize(SerializableJobPackage pJobList, java.io.OutputStream pOutputStream)
          Serializes the given job list to the given output stream.
 void setApplicationContext(org.springframework.context.ApplicationContext pContext)
           
 
Methods inherited from class de.phleisch.app.itsucks.persistence.impl.AbstractJobSerialization
deserialize, serialize, setJobFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.phleisch.app.itsucks.persistence.JobSerialization
deserialize, serialize, setJobFactory
 

Constructor Detail

BinaryObjectJobSerialization

public BinaryObjectJobSerialization()
Method Detail

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.