Inherits org::ccnx::ccn::io::content::CCNEncodableObject< org::ccnx::ccn::io::content::ConfigSlice >.
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) |
In addition the object is named after a hash of the contents, so this must be available when creating a NetworkObject.
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.
hash | of slice data. | |
handle |
ContentDecodingException | ||
IOException |
org.ccnx.ccn.io.content.ConfigSlice.NetworkObject.NetworkObject | ( | ConfigSlice | data, | |
CCNHandle | handle | |||
) | throws IOException |
Write constructor.
data | Used to generate the full object name (which is a hash of the data). | |
handle |
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.