dsto.dfc.swing.persistence
Class DefaultSerializer

java.lang.Object
  extended by dsto.dfc.swing.persistence.DefaultSerializer
All Implemented Interfaces:
ISerializer

public class DefaultSerializer
extends Object
implements ISerializer

Default serializer that uses Java serialization.

Version:
$Revision$
Author:
mpp

Constructor Summary
DefaultSerializer()
           
 
Method Summary
 Object deserialize(InputStream input)
           
static DefaultSerializer getInstance()
           
 void serialize(OutputStream output, Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSerializer

public DefaultSerializer()
Method Detail

getInstance

public static DefaultSerializer getInstance()

serialize

public void serialize(OutputStream output,
                      Object object)
               throws IOException
Specified by:
serialize in interface ISerializer
Throws:
IOException

deserialize

public Object deserialize(InputStream input)
                   throws IOException,
                          ClassNotFoundException
Specified by:
deserialize in interface ISerializer
Throws:
IOException
ClassNotFoundException


Copyright © 2008 Commonwealth of Australia