org.ccnx.ccn.io.content.ConfigSlice.NetworkObject Class Reference

A ConfigSlice is always saved in the local repository under /localhost/CS.s.cs, so the full name does not need to be passed to the constructors here. More...

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

List of all members.

Public Member Functions

 NetworkObject (byte[] hash, CCNHandle handle) throws ContentDecodingException, IOException
 Read constructor.
 NetworkObject (ConfigSlice data, CCNHandle handle) throws IOException
 Write constructor.
 NetworkObject (ContentName topo, ContentName prefix, Collection< Filter > filters, CCNHandle handle) throws IOException
 Convenience write constructor.
ConfigSlice getData ()

Static Public Member Functions

static ContentName nameFromHash (byte[] hash)


Detailed Description

A ConfigSlice is always saved in the local repository under /localhost/CS.s.cs, so the full name does not need to be passed to the constructors here.

In addition the object is named after a hash of the contents, so this must be available when creating a NetworkObject.


Constructor & Destructor Documentation

org.ccnx.ccn.io.content.ConfigSlice.NetworkObject.NetworkObject ( byte[]  hash,
CCNHandle  handle 
) throws ContentDecodingException, IOException

Read constructor.

Use when you have a slice hash (perhaps from enumeration), and want to know if it's present or not.

Parameters:
hash of slice data.
handle 
Exceptions:
ContentDecodingException 
IOException 

org.ccnx.ccn.io.content.ConfigSlice.NetworkObject.NetworkObject ( ConfigSlice  data,
CCNHandle  handle 
) throws IOException

Write constructor.

Parameters:
data Used to generate the full object name (which is a hash of the data).
handle 
Exceptions:
ContentDecodingException 
IOException 

org.ccnx.ccn.io.content.ConfigSlice.NetworkObject.NetworkObject ( ContentName  topo,
ContentName  prefix,
Collection< Filter filters,
CCNHandle  handle 
) throws IOException

Convenience write constructor.

Creates an ConfigSlice, calculates the hash and creates a NetworkObject together.


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