org.ccnx.ccn.io.content.Header.HeaderObject Class Reference

A CCNNetworkObject wrapper around Header, used for easily saving and retrieving versioned Headers to CCN. More...

Inherits org::ccnx::ccn::io::content::CCNEncodableObject< org::ccnx::ccn::io::content::Header >.

List of all members.

Public Member Functions

 HeaderObject (ContentName name, Header data, SaveType saveType, CCNHandle handle) throws IOException
 HeaderObject (ContentName name, Header data, SaveType saveType, PublisherPublicKeyDigest publisher, KeyLocator keyLocator, CCNHandle handle) throws IOException
 HeaderObject (ContentName name, Header data, PublisherPublicKeyDigest publisher, KeyLocator keyLocator, CCNFlowControl flowControl) throws ContentDecodingException, IOException
 HeaderObject (ContentName name, CCNHandle handle) throws ContentDecodingException, IOException
 HeaderObject (ContentName name, PublisherPublicKeyDigest publisher, CCNHandle handle) throws ContentDecodingException, IOException
 HeaderObject (ContentObject firstBlock, CCNHandle handle) throws ContentDecodingException, IOException
long start () throws ContentGoneException, ContentNotReadyException, ErrorStateException
long count () throws ContentGoneException, ContentNotReadyException, ErrorStateException
int blockSize () throws ContentGoneException, ContentNotReadyException, ErrorStateException
long length () throws ContentGoneException, ContentNotReadyException, ErrorStateException
byte[] rootDigest () throws ContentGoneException, ContentNotReadyException, ErrorStateException
byte[] contentDigest () throws ContentGoneException, ContentNotReadyException, ErrorStateException
SegmentationType type () throws ContentGoneException, ContentNotReadyException, ErrorStateException
String typeName () throws ContentNotReadyException, ContentGoneException, ErrorStateException
int[] positionToSegmentLocation (long position) throws ContentNotReadyException, ContentGoneException, ErrorStateException
long segmentLocationToPosition (long block, int offset) throws ContentNotReadyException, ContentGoneException, ErrorStateException
int segmentCount () throws ContentNotReadyException, ContentGoneException, ErrorStateException
int segmentRemainder () throws ContentNotReadyException, ContentGoneException, ErrorStateException
Header header () throws ContentNotReadyException, ContentGoneException, ErrorStateException


Detailed Description

A CCNNetworkObject wrapper around Header, used for easily saving and retrieving versioned Headers to CCN.

A typical pattern for using network objects to save objects that happen to be encodable or serializable is to incorporate such a static member wrapper class subclassing CCNEncodableObject, CCNSerializableObject, or CCNNetworkObject itself inside the main class definition.


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:45:02 2012 for Content-Centric Networking in Java by  doxygen 1.5.6