|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.internal.util.SerializationUtils
public abstract class SerializationUtils
Utilities for serializing and deserializing objects.
Constructor Summary | |
---|---|
SerializationUtils()
|
Method Summary | |
---|---|
static java.lang.Object |
deserialize(byte[] aBytes)
Deserializes an object from a byte array. |
static byte[] |
serialize(java.io.Serializable aObject)
Serializes an object to a byte array. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SerializationUtils()
Method Detail |
---|
public static byte[] serialize(java.io.Serializable aObject) throws java.io.IOException
aObject
- object to serialize
aObject
encoded as a byte array. If aObject
is
null
, null
is returned.
java.io.IOException
- if an I/O error occurspublic static java.lang.Object deserialize(byte[] aBytes) throws java.io.IOException, java.lang.ClassNotFoundException
aBytes
- byte array to read from
Object
deserialized from aBytes
. If
aBytes
is null
, null
is returned.
java.io.IOException
- if an I/O error occurs
java.lang.ClassNotFoundException
- if a required class could not be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |