|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.persistence.util.Serializer
public final class 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,
java.io.InputStream stream)
Deserializes a NodeReferences object from the given
binary stream. |
static void |
deserialize(NodeState state,
java.io.InputStream stream)
Deserializes a NodeState object from the given binary
stream. |
static void |
deserialize(PropertyState state,
java.io.InputStream stream,
BLOBStore blobStore)
Deserializes a PropertyState object from the given binary
stream. |
static void |
serialize(NodeReferences refs,
java.io.OutputStream stream)
Serializes the specified NodeReferences object to the given
binary stream. |
static void |
serialize(NodeState state,
java.io.OutputStream stream)
Serializes the specified NodeState object to the given
binary stream. |
static void |
serialize(PropertyState state,
java.io.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,
java.io.OutputStream stream)
throws java.lang.Exception
NodeState object to the given
binary stream.
state - state to serializestream - the stream where the state should be
serialized to
java.lang.Exception - if an error occurs during the serializationdeserialize(NodeState, InputStream)
public static void deserialize(NodeState state,
java.io.InputStream stream)
throws java.lang.Exception
NodeState object from the given binary
stream.
state - state to deserializestream - the stream where the state should be deserialized from
java.lang.Exception - if an error occurs during the deserializationserialize(NodeState, OutputStream)
public static void serialize(PropertyState state,
java.io.OutputStream stream,
BLOBStore blobStore)
throws java.lang.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
java.lang.Exception - if an error occurs during the serializationdeserialize(PropertyState, InputStream,BLOBStore)
public static void deserialize(PropertyState state,
java.io.InputStream stream,
BLOBStore blobStore)
throws java.lang.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
java.lang.Exception - if an error occurs during the deserializationserialize(PropertyState, OutputStream, BLOBStore)
public static void serialize(NodeReferences refs,
java.io.OutputStream stream)
throws java.lang.Exception
NodeReferences object to the given
binary stream.
refs - object to serializestream - the stream where the object should be serialized to
java.lang.Exception - if an error occurs during the serializationdeserialize(NodeReferences, InputStream)
public static void deserialize(NodeReferences refs,
java.io.InputStream stream)
throws java.lang.Exception
NodeReferences object from the given
binary stream.
refs - object to deserializestream - the stream where the object should be deserialized from
java.lang.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 | |||||||||