JSecurity

org.jsecurity.io
Class DefaultSerializer

java.lang.Object
  extended by org.jsecurity.io.DefaultSerializer
All Implemented Interfaces:
Serializer

public class DefaultSerializer
extends Object
implements Serializer

Serializer implementation that uses the default JVM serialization mechanism (Object Input/Output Streams).

Since:
0.9
Author:
Les Hazlewood

Constructor Summary
DefaultSerializer()
           
 
Method Summary
 Object deserialize(byte[] serialized)
           
 byte[] serialize(Object o)
           
 
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

serialize

public byte[] serialize(Object o)
                 throws SerializationException
Specified by:
serialize in interface Serializer
Throws:
SerializationException

deserialize

public Object deserialize(byte[] serialized)
                   throws SerializationException
Specified by:
deserialize in interface Serializer
Throws:
SerializationException

JSecurity

Copyright © 2004-2008 JSecurity.