|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccs.beetree.BeeObject
ccs.beetree.BeeGeneric
public class BeeGeneric
A fairly dumb BeeObject used as a transport by BeeCompactor. The object is unmarshalled into / out of a swappingbuffer. Left public since it might possibly be useful elsewhere. However, applications should use more specialised classes in most cases. In particular, only CDBObject subclasses are allowed in CDB's (Checkpoint DataBases).
Field Summary |
---|
Fields inherited from class ccs.beetree.BeeObject |
---|
cipher, encodedLength, isBodiless, isForceDirectDecrypt, isZip, slack |
Constructor Summary | |
---|---|
|
BeeGeneric()
|
protected |
BeeGeneric(BeeTreeCompactor patron)
|
Method Summary | |
---|---|
java.lang.String |
getKey()
Return the key for this object - the String used to find
this object within the BeeTree. |
long |
getMarshalledLength()
Returns the marshalled length. |
SwappingBuffer |
getSwappingBuffer()
Gain direct access to the current SwappingBuffer. |
void |
marshal(java.io.DataOutputStream dest)
Marshals - writes as a succession of fields - the object's data onto the supplied stream. |
void |
preMarshal()
Prepare to marshal. |
void |
preUnmarshal()
Prepare to unmarshal. |
void |
setKey(java.lang.String key)
Sets the key for this object. |
void |
unmarshal(java.io.DataInputStream src)
De-serialises the object's properties from the supplied input stream. |
Methods inherited from class ccs.beetree.BeeObject |
---|
lock, unlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeeGeneric()
protected BeeGeneric(BeeTreeCompactor patron)
Method Detail |
---|
public void preMarshal() throws java.io.IOException
preMarshal
in class BeeObject
java.io.IOException
- if the object isn't ready.public void preUnmarshal() throws java.io.IOException
preUnmarshal
in class BeeObject
java.io.IOException
- if the object isn't ready.public java.lang.String getKey()
String
used to find
this object within the BeeTree.
getKey
in class BeeObject
public void setKey(java.lang.String key)
setKey
in class BeeObject
key
- The full key to this object.public void marshal(java.io.DataOutputStream dest) throws java.io.IOException
marshal
in class BeeObject
dest
- The stream to write onto.
java.io.IOException
- if an error occurs.public void unmarshal(java.io.DataInputStream src) throws java.io.IOException
unmarshal
in class BeeObject
src
- the stream to read from.
java.io.IOException
- if an error occurs.public long getMarshalledLength()
getMarshalledLength
in class BeeObject
public SwappingBuffer getSwappingBuffer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |