ccs.cdb
Class CDBFileMeta
java.lang.Object
ccs.beetree.BeeObject
ccs.cdb.CDBObject
ccs.cdb.MKCDBObject
ccs.cdb.CDBFileMeta
- All Implemented Interfaces:
- java.io.Serializable
public class CDBFileMeta
- extends MKCDBObject
The metadata stored for a CDBFile
(qv.) Don't try to create
your own - use CDBFilesystem instead.
- See Also:
CDBFilesystem.getFileMeta(ccs.cdb.CDBeeTree, java.lang.String)
,
Serialized Form
Method Summary |
protected void |
cpmarshal(java.io.DataOutputStream dest)
override this to marshal your data, just like marshal . |
protected void |
cpunmarshal(java.io.DataInputStream src,
int marshalver)
override this to unmarshal your data, just like unmarshal . |
long |
getLastModified()
|
long |
getLength()
|
Methods inherited from class ccs.cdb.CDBObject |
canChangeKeyProgrammatically, canDeleteProgrammatically, canUpdateProgrammatically, cpgetMarshalledLength, cppreMarshal, cppreUnmarshal, getCDB, getKey, getMarshalledLength, marshal, preMarshal, preUnmarshal, setCDB, setKey, transientMarshal, transientUnmarshal, unmarshal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
internalPath
public java.lang.String internalPath
- Undocumented.
encodedLength
public java.lang.String encodedLength
- Undocumented.
encodedLast
public java.lang.String encodedLast
- Undocumented.
CDBFileMeta
public CDBFileMeta()
getLength
public long getLength()
- Returns:
- The uncompressed length of the CDBFile's content. The size on
disk is likely to be different.
getLastModified
public long getLastModified()
- Returns:
- The last-modified time of the file, in ms since the epoch.
cpmarshal
protected void cpmarshal(java.io.DataOutputStream dest)
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:
dest
- The stream to marshal onto.
- Throws:
java.io.IOException
- If this breaks (breaks the CDB too).
cpunmarshal
protected void cpunmarshal(java.io.DataInputStream src,
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:
src
- 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.
- Throws:
java.io.IOException
- if this breaks (breaks the CDB too).