|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccs.beetree.BeeObject
ccs.cdb.CDBObject
ccs.cdb.CDBFileSysObject
public class CDBFileSysObject
The common ancestor of CDBFile and CDBDirectory. The only thing these two have in common is that they're both needed to implement a virtual filesystem inside a CDB; hence they form the "filesystem set" in a CDB and so require a common base class. And since they're disjoint apart from both having simple keys (which is implemented by CDBObject) the only things in here are some dummy methods to make the thing concrete.
Field Summary |
---|
Fields inherited from class ccs.cdb.CDBObject |
---|
clone, key, marshalVersion, owner |
Fields inherited from class ccs.beetree.BeeObject |
---|
cipher, encodedLength, isBodiless, isForceDirectDecrypt, isZip, slack |
Constructor Summary | |
---|---|
CDBFileSysObject()
|
Method Summary | |
---|---|
protected void |
cpmarshal(java.io.DataOutputStream dos)
override this to marshal your data, just like marshal . |
protected void |
cpunmarshal(java.io.DataInputStream dis,
int marshalver)
override this to unmarshal your data, just like unmarshal . |
Methods inherited from class ccs.cdb.CDBObject |
---|
canChangeKeyProgrammatically, canDeleteProgrammatically, canUpdateProgrammatically, cpgetKey, cpgetMarshalledLength, cppreMarshal, cppreUnmarshal, cpsetKey, getCDB, getKey, getMarshalledLength, marshal, preMarshal, preUnmarshal, setCDB, setKey, transientMarshal, transientUnmarshal, unmarshal |
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 CDBFileSysObject()
Method Detail |
---|
protected void cpmarshal(java.io.DataOutputStream dos) throws java.io.IOException
CDBObject
marshal
.
The data will be in the object's fields when this is called (rather than
within any UI objects).
cpmarshal
in class CDBObject
dos
- The stream to marshal onto.
java.io.IOException
- If this breaks (breaks the CDB too).protected void cpunmarshal(java.io.DataInputStream dis, int marshalver) throws java.io.IOException
CDBObject
unmarshal
.
cpunmarshal
in class CDBObject
dis
- The stream to unmarshal frommarshalver
- The marshal version of the data in src - i.e. the
version of this class which wrote the data. This may be
different from the current marshalVersion
. If so (i.e. the
stored data is the wrong version) your method should allow for it.
This allows comparatively painless data migration between versions of
your objects.
java.io.IOException
- if this breaks (breaks the CDB too).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |