org.ccnx.ccn.test.io.content.CCNSerializableStringObject Class Reference

A CCNNetworkObject wrapper around Java Strings, which uses Java serialization to write those strings. More...

List of all members.

Public Member Functions

 CCNSerializableStringObject (ContentName name, String data, SaveType saveType, CCNHandle handle) throws IOException
 CCNSerializableStringObject (ContentName name, String data, SaveType saveType, PublisherPublicKeyDigest publisher, KeyLocator locator, CCNHandle handle) throws IOException
 CCNSerializableStringObject (ContentName name, CCNHandle handle) throws ContentDecodingException, IOException
 CCNSerializableStringObject (ContentName name, PublisherPublicKeyDigest publisher, CCNHandle handle) throws ContentDecodingException, IOException
 CCNSerializableStringObject (ContentObject firstBlock, CCNHandle handle) throws ContentDecodingException, IOException
 CCNSerializableStringObject (ContentName name, String data, PublisherPublicKeyDigest publisher, KeyLocator locator, CCNFlowControl flowControl) throws IOException
 Internal constructor used by low-level network operations.
 CCNSerializableStringObject (ContentName name, PublisherPublicKeyDigest publisher, CCNFlowControl flowControl) throws ContentDecodingException, IOException
 Internal constructor used by low-level network operations.
 CCNSerializableStringObject (ContentObject firstSegment, CCNFlowControl flowControl) throws ContentDecodingException, IOException
 Internal constructor used by low-level network operations.
String string () throws ContentNotReadyException, ContentGoneException, ErrorStateException

Detailed Description

A CCNNetworkObject wrapper around Java Strings, which uses Java serialization to write those strings.

Allows reading and writing of versioned strings to CCN, and background updating of same. Very useful class for writing simple tests and applications, but requires both communicating partners to speak Java Serialization. See CCNStringObject for a more generally useful string object that serializes the string in pure UTF-8, making something that can be more easily read from other languages.


Constructor & Destructor Documentation

org.ccnx.ccn.test.io.content.CCNSerializableStringObject.CCNSerializableStringObject ( ContentName  name,
String  data,
PublisherPublicKeyDigest  publisher,
KeyLocator  locator,
CCNFlowControl  flowControl 
) throws IOException

Internal constructor used by low-level network operations.

Don't use unless you know what you are doing.

Parameters:
name name under which to save data
data data to save when save() is called; or null if the next call will be updateInBackground()
publisher key (identity) to use to sign the content (null for default)
locator key locator to use to tell people where to find our key, should match publisher, (null for default for key)
flowControl flow controller to use for network output
Exceptions:
IOException 
org.ccnx.ccn.test.io.content.CCNSerializableStringObject.CCNSerializableStringObject ( ContentName  name,
PublisherPublicKeyDigest  publisher,
CCNFlowControl  flowControl 
) throws ContentDecodingException, IOException

Internal constructor used by low-level network operations.

Don't use unless you know what you are doing.

Parameters:
name name under which to save data
data data to save when save() is called; or null if the next call will be updateInBackground()
publisher key (identity) to use to sign the content (null for default)
locator key locator to use to tell people where to find our key, should match publisher, (null for default for key)
flowControl flow controller to use for network output
Exceptions:
IOException 
org.ccnx.ccn.test.io.content.CCNSerializableStringObject.CCNSerializableStringObject ( ContentObject  firstSegment,
CCNFlowControl  flowControl 
) throws ContentDecodingException, IOException

Internal constructor used by low-level network operations.

Don't use unless you know what you are doing.

Parameters:
name name under which to save data
data data to save when save() is called; or null if the next call will be updateInBackground()
publisher key (identity) to use to sign the content (null for default)
locator key locator to use to tell people where to find our key, should match publisher, (null for default for key)
flowControl flow controller to use for network output
Exceptions:
IOException 

The documentation for this class was generated from the following file:
Generated on Fri May 13 16:27:53 2011 for Content-Centric Networking in Java by  doxygen 1.6.3