| |
|
| java.lang.Object jdbm.helper.IntegerSerializer
IntegerSerializer | public class IntegerSerializer implements Serializer(Code) | | Optimized serializer for integers.
author: Alex Boisvert version: $Id: IntegerSerializer.java,v 1.2 2003/09/21 15:47:00 boisvert Exp $ |
Method Summary | |
public Object | deserialize(byte[] serialized) Deserialize the content of an object from a byte array. | public byte[] | serialize(Object obj) Serialize the content of an object into a byte array. |
IntegerSerializer | public IntegerSerializer()(Code) | | Construct an IntegerSerializer.
|
deserialize | public Object deserialize(byte[] serialized) throws IOException(Code) | | Deserialize the content of an object from a byte array.
Parameters: serialized - Byte array representation of the object deserialized object |
serialize | public byte[] serialize(Object obj) throws IOException(Code) | | Serialize the content of an object into a byte array.
Parameters: obj - Object to serialize a byte array representing the object's state |
|
|
|