Package org.apache.wicket.serialize
Interface ISerializer
-
- All Known Implementing Classes:
DeflatedJavaSerializer
,JavaSerializer
public interface ISerializer
A serializer that can be used to convert an object to byte array and back
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
deserialize(byte[] data)
Reconstructs the object from its serialized statebyte[]
serialize(Object object)
Converts the object to byte array
-
-
-
Method Detail
-
serialize
byte[] serialize(Object object)
Converts the object to byte array- Parameters:
object
- the object to serialize- Returns:
- the serialized page as byte array
-
deserialize
Object deserialize(byte[] data)
Reconstructs the object from its serialized state- Parameters:
data
- the serialized state of the object- Returns:
- the object reconstructed from its serialized state
-
-