public class BinaryObjectsHelper extends Object
| Constructor and Description |
|---|
BinaryObjectsHelper() |
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(String base64Rep)
Decodes an object from the serialized form encoded in the given Base64 string.
|
byte[] |
decodeByteArray(String base64Rep)
Decodes the given Base64 form to a byte array.
|
Object |
deserialize(byte[] serializedForm)
Deserializes the object from its byte array representation.
|
String |
encode(Object obj)
Encodes the serialized form of the given object to its Base64 form.
|
String |
encodeByteArray(byte[] data)
Encodes the given byte array to its Base64 form.
|
byte[] |
serialize(Object obj)
Serializes the given object to a byte array representation.
|
public byte[] serialize(Object obj)
obj - The object to serializepublic Object deserialize(byte[] serializedForm)
serializedForm - The byte array containing the serialized form of the objectpublic String encode(Object obj)
obj - The objectpublic String encodeByteArray(byte[] data)
data - The data to encodepublic Object decode(String base64Rep)
base64Rep - The serialized form encoded in Base64public byte[] decodeByteArray(String base64Rep)
base64Rep - The Base64 string to decodeCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.