org.ccnx.ccn.io.content.Link.LinkObject Class Reference

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

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

List of all members.

Public Member Functions

 LinkObject (ContentName name, Link data, SaveType saveType, CCNHandle handle) throws IOException
 LinkObject (ContentName name, Link data, SaveType saveType, PublisherPublicKeyDigest publisher, KeyLocator keyLocator, CCNHandle handle) throws IOException
 LinkObject (ContentName name, CCNHandle handle) throws ContentDecodingException, IOException
 LinkObject (ContentName name, PublisherPublicKeyDigest publisher, CCNHandle handle) throws ContentDecodingException, IOException
 LinkObject (ContentObject firstBlock, CCNHandle handle) throws ContentDecodingException, IOException
 LinkObject (ContentName name, PublisherPublicKeyDigest publisher, CCNFlowControl flowControl) throws ContentDecodingException, IOException
 LinkObject (ContentObject firstBlock, CCNFlowControl flowControl) throws ContentDecodingException, IOException
 LinkObject (ContentName name, Link data, PublisherPublicKeyDigest publisher, KeyLocator keyLocator, CCNFlowControl flowControl) throws IOException
 LinkObject (CCNEncodableObject<?extends Link > other)
ContentType contentType ()
 Subclasses that need to write an object of a particular type can override.
ContentName getTargetName () throws ContentGoneException, ContentNotReadyException, ErrorStateException
LinkAuthenticator getTargetAuthenticator () throws ContentNotReadyException, ContentGoneException, ErrorStateException
Link link () throws ContentNotReadyException, ContentGoneException, ErrorStateException
ContentObject dereference (long timeout) throws IOException

Protected Member Functions

EnumSet< FlagTypes > getInputStreamFlags ()
 Modify the properties of the input streams we read to read links themselves, rather than dereferencing them and causing an infinite loop; must modify in constructor to handle passed in content objects.


Detailed Description

A CCNNetworkObject wrapper around Link, used for easily saving and retrieving versioned Links 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.


Member Function Documentation

ContentType org.ccnx.ccn.io.content.Link.LinkObject.contentType (  ) 

Subclasses that need to write an object of a particular type can override.

Returns:
Content type to use.

EnumSet<FlagTypes> org.ccnx.ccn.io.content.Link.LinkObject.getInputStreamFlags (  )  [protected]

Modify the properties of the input streams we read to read links themselves, rather than dereferencing them and causing an infinite loop; must modify in constructor to handle passed in content objects.


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