|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IElementSerializer
Defines the behavior for cache element serializers. This layer of abstraction allows us to plug in different serialization mechanisms, such as a compressing standard serializer.
Method Summary | |
---|---|
Object |
deSerialize(byte[] bytes)
Turns a byte array into an object. |
byte[] |
serialize(Serializable obj)
Turns an object into a byte array. |
Method Detail |
---|
byte[] serialize(Serializable obj) throws IOException
obj
-
IOException
Object deSerialize(byte[] bytes) throws IOException, ClassNotFoundException
bytes
-
IOException
ClassNotFoundException
- thrown if we don't know the object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |