|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.serialize.java.JavaSerializer
public class JavaSerializer
An implementation of ISerializer based on Java Serialization (ObjectOutputStream,
ObjectInputStream)
Requires the application key to enable serialization and deserialisation outside thread in which
application thread local is set
IObjectStreamFactory| Constructor Summary | |
|---|---|
JavaSerializer(java.lang.String applicationKey)
Construct. |
|
| Method Summary | |
|---|---|
java.lang.Object |
deserialize(byte[] data)
Reconstructs the object from its serialized state |
protected java.io.ObjectInputStream |
newObjectInputStream(java.io.InputStream in)
Gets a new instance of an ObjectInputStream with the provided InputStream. |
protected java.io.ObjectOutputStream |
newObjectOutputStream(java.io.OutputStream out)
Gets a new instance of an ObjectOutputStream with the provided OutputStream. |
byte[] |
serialize(java.lang.Object object)
Converts the object to byte array |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaSerializer(java.lang.String applicationKey)
applicationKey - | Method Detail |
|---|
public byte[] serialize(java.lang.Object object)
ISerializer
serialize in interface ISerializerobject - the object to serialize
public java.lang.Object deserialize(byte[] data)
ISerializer
deserialize in interface ISerializerdata - the serialized state of the object
protected java.io.ObjectInputStream newObjectInputStream(java.io.InputStream in)
throws java.io.IOException
ObjectInputStream with the provided InputStream.
in - The input stream that should be used for the reading
java.io.IOException - if an I/O error occurs while reading stream header
protected java.io.ObjectOutputStream newObjectOutputStream(java.io.OutputStream out)
throws java.io.IOException
ObjectOutputStream with the provided OutputStream.
out - The output stream that should be used for the writing
java.io.IOException - if an I/O error occurs while writing stream header
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||