|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ddlutils.io.BinaryObjectsHelper
public class BinaryObjectsHelper
Helper class for dealing with the serialization and Base64 encoding of objects.
Constructor Summary | |
---|---|
BinaryObjectsHelper()
|
Method Summary | |
---|---|
java.lang.Object |
decode(java.lang.String base64Rep)
Decodes an object from the serialized form encoded in the given Base64 string. |
byte[] |
decodeByteArray(java.lang.String base64Rep)
Decodes the given Base64 form to a byte array. |
java.lang.Object |
deserialize(byte[] serializedForm)
Deserializes the object from its byte array representation. |
java.lang.String |
encode(java.lang.Object obj)
Encodes the serialized form of the given object to its Base64 form. |
java.lang.String |
encodeByteArray(byte[] data)
Encodes the given byte array to its Base64 form. |
byte[] |
serialize(java.lang.Object obj)
Serializes the given object to a byte array representation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryObjectsHelper()
Method Detail |
---|
public byte[] serialize(java.lang.Object obj)
obj
- The object to serialize
public java.lang.Object deserialize(byte[] serializedForm)
serializedForm
- The byte array containing the serialized form of the object
public java.lang.String encode(java.lang.Object obj)
obj
- The object
public java.lang.String encodeByteArray(byte[] data)
data
- The data to encode
public java.lang.Object decode(java.lang.String base64Rep)
base64Rep
- The serialized form encoded in Base64
public byte[] decodeByteArray(java.lang.String base64Rep)
base64Rep
- The Base64 string to decode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |