|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.state.util.Serializer
Serializer
is a utility class that provides static methods
for serializing & deserializing ItemState
and
NodeReferences
objects using a simple binary serialization
format.
Constructor Summary | |
Serializer()
|
Method Summary | |
static void |
deserialize(NodeReferences refs,
InputStream stream)
Deserializes a NodeReferences object from the given
binary stream . |
static void |
deserialize(NodeState state,
InputStream stream)
Deserializes a NodeState object from the given binary
stream . |
static void |
deserialize(PropertyState state,
InputStream stream,
BLOBStore blobStore)
Deserializes a PropertyState object from the given binary
stream . |
static void |
serialize(NodeReferences refs,
OutputStream stream)
Serializes the specified NodeReferences object to the given
binary stream . |
static void |
serialize(NodeState state,
OutputStream stream)
Serializes the specified NodeState object to the given
binary stream . |
static void |
serialize(PropertyState state,
OutputStream stream,
BLOBStore blobStore)
Serializes the specified PropertyState object to the given
binary stream . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Serializer()
Method Detail |
public static void serialize(NodeState state, OutputStream stream) throws Exception
NodeState
object to the given
binary stream
.
state
- state
to serializestream
- the stream where the state
should be
serialized to
Exception
- if an error occurs during the serializationdeserialize(NodeState, InputStream)
public static void deserialize(NodeState state, InputStream stream) throws Exception
NodeState
object from the given binary
stream
.
state
- state
to deserializestream
- the stream where the state
should be deserialized from
Exception
- if an error occurs during the deserializationserialize(NodeState, OutputStream)
public static void serialize(PropertyState state, OutputStream stream, BLOBStore blobStore) throws Exception
PropertyState
object to the given
binary stream
. Binary values are stored in the specified
BLOBStore
.
state
- state
to serializestream
- the stream where the state
should be
serialized toblobStore
- handler for BLOB data
Exception
- if an error occurs during the serializationdeserialize(PropertyState, InputStream, BLOBStore)
public static void deserialize(PropertyState state, InputStream stream, BLOBStore blobStore) throws Exception
PropertyState
object from the given binary
stream
. Binary values are retrieved from the specified
BLOBStore
.
state
- state
to deserializestream
- the stream where the state
should be
deserialized fromblobStore
- handler for BLOB data
Exception
- if an error occurs during the deserializationserialize(PropertyState, OutputStream, BLOBStore)
public static void serialize(NodeReferences refs, OutputStream stream) throws Exception
NodeReferences
object to the given
binary stream
.
refs
- object to serializestream
- the stream where the object should be serialized to
Exception
- if an error occurs during the serializationdeserialize(NodeReferences, InputStream)
public static void deserialize(NodeReferences refs, InputStream stream) throws Exception
NodeReferences
object from the given
binary stream
.
refs
- object to deserializestream
- the stream where the object should be deserialized from
Exception
- if an error occurs during the deserializationserialize(NodeReferences, OutputStream)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |