|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.persistence.bundle.util.ItemStateBinding org.apache.jackrabbit.core.persistence.bundle.util.BundleBinding
public class BundleBinding
This Class implements efficient serialization methods for item states.
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.core.persistence.bundle.util.ItemStateBinding |
---|
blobStore, dataStore, errorHandling, minBlobSize, nameIndex, nsIndex, VERSION_1, VERSION_CURRENT |
Constructor Summary | |
---|---|
BundleBinding(ErrorHandling errorHandling,
BLOBStore blobStore,
StringIndex nsIndex,
StringIndex nameIndex,
DataStore dataStore)
Creates a new bundle binding |
Method Summary | |
---|---|
boolean |
checkBundle(DataInputStream in)
Checks a NodePropBundle from a data input stream. |
boolean |
checkPropertyState(DataInputStream in)
Checks a PropertyState from the data input stream. |
NodePropBundle |
readBundle(DataInputStream in,
NodeId id)
Deserializes a NodePropBundle from a data input stream. |
NodePropBundle.PropertyEntry |
readPropertyEntry(DataInputStream in,
PropertyId id)
Deserializes a PropertyState from the data input stream. |
void |
writeBundle(DataOutputStream out,
NodePropBundle bundle)
Serializes a NodePropBundle to a data output stream |
void |
writeState(DataOutputStream out,
NodePropBundle.PropertyEntry state)
Serializes a PropertyState to the data output stream |
Methods inherited from class org.apache.jackrabbit.core.persistence.bundle.util.ItemStateBinding |
---|
getBlobStore, getMinBlobSize, readID, readIndexedQName, readModCount, readPropertyId, readQName, readState, readState, readUUID, setMinBlobSize, writeID, writeIndexedQName, writeModCount, writePropertyId, writeQName, writeState, writeState, writeUUID, writeUUID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BundleBinding(ErrorHandling errorHandling, BLOBStore blobStore, StringIndex nsIndex, StringIndex nameIndex, DataStore dataStore)
errorHandling
- the error handlingblobStore
- the blobstore for retrieving blobsnsIndex
- the namespace indexnameIndex
- the name indexdataStore
- the data storeMethod Detail |
---|
public NodePropBundle readBundle(DataInputStream in, NodeId id) throws IOException
NodePropBundle
from a data input stream.
in
- the input streamid
- the nodeid for the new budle
IOException
- if an I/O error occurs.public boolean checkBundle(DataInputStream in)
NodePropBundle
from a data input stream.
in
- the input stream
true
if the data is valid;
false
otherwise.public void writeBundle(DataOutputStream out, NodePropBundle bundle) throws IOException
NodePropBundle
to a data output stream
out
- the output streambundle
- the bundle to serialize
IOException
- if an I/O error occurs.public NodePropBundle.PropertyEntry readPropertyEntry(DataInputStream in, PropertyId id) throws IOException
PropertyState
from the data input stream.
in
- the input streamid
- the property id for the new propert entry
IOException
- if an I/O error occurs.public boolean checkPropertyState(DataInputStream in)
PropertyState
from the data input stream.
in
- the input stream
true
if the data is valid;
false
otherwise.public void writeState(DataOutputStream out, NodePropBundle.PropertyEntry state) throws IOException
PropertyState
to the data output stream
out
- the output streamstate
- the property entry to store
IOException
- if an I/O error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |