ccs.cdb
Class CDBFileSysObject

java.lang.Object
  extended by ccs.beetree.BeeObject
      extended by ccs.cdb.CDBObject
          extended by ccs.cdb.CDBFileSysObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CDBDirectory, CDBFile

public class CDBFileSysObject
extends CDBObject

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.

See Also:
Serialized Form

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

CDBFileSysObject

public CDBFileSysObject()
Method Detail

cpmarshal

protected void cpmarshal(java.io.DataOutputStream dos)
                  throws java.io.IOException
Description copied from class: CDBObject
override this to marshal your data, just like marshal. The data will be in the object's fields when this is called (rather than within any UI objects).

Specified by:
cpmarshal in class CDBObject
Parameters:
dos - The stream to marshal onto.
Throws:
java.io.IOException - If this breaks (breaks the CDB too).

cpunmarshal

protected void cpunmarshal(java.io.DataInputStream dis,
                           int marshalver)
                    throws java.io.IOException
Description copied from class: CDBObject
override this to unmarshal your data, just like unmarshal.

Specified by:
cpunmarshal in class CDBObject
Parameters:
dis - The stream to unmarshal from
marshalver - 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.
Throws:
java.io.IOException - if this breaks (breaks the CDB too).