public class StringSerializer extends Object implements Serializer
Constructor and Description |
---|
StringSerializer() |
Modifier and Type | Method and Description |
---|---|
Object |
deserialize(byte[] bites)
Deserialize the content of an object from a byte array.
|
byte[] |
serialize(Object str)
Serialize the content of an object into a byte array.
|
public Object deserialize(byte[] bites) throws IOException
Serializer
deserialize
in interface Serializer
bites
- Byte array representation of the objectIOException
public byte[] serialize(Object str) throws IOException
Serializer
serialize
in interface Serializer
str
- Object to serializeIOException
Copyright © 2003-2013 Apache Software Foundation. All Rights Reserved.