org.ccnx.ccn.io.CCNVersionedOutputStream Class Reference
An output stream that adds a version to the names it outputs.
More...
List of all members.
Public Member Functions |
| CCNVersionedOutputStream (ContentName baseName, CCNHandle handle) throws IOException |
| Constructor for a CCN output stream writing under a versioned name.
|
| CCNVersionedOutputStream (ContentName baseName, PublisherPublicKeyDigest publisher, CCNHandle handle) throws IOException |
| Constructor for a CCN output stream writing under a versioned name.
|
| CCNVersionedOutputStream (ContentName baseName, ContentKeys keys, CCNHandle handle) throws IOException |
| Constructor for a CCN output stream writing under a versioned name.
|
| CCNVersionedOutputStream (ContentName baseName, KeyLocator locator, PublisherPublicKeyDigest publisher, ContentKeys keys, CCNHandle handle) throws IOException |
| Constructor for a CCN output stream writing under a versioned name.
|
| CCNVersionedOutputStream (ContentName baseName, KeyLocator locator, PublisherPublicKeyDigest publisher, ContentType type, ContentKeys keys, CCNHandle handle) throws IOException |
| Constructor for a CCN output stream writing under a versioned name.
|
| CCNVersionedOutputStream (ContentName baseName, KeyLocator locator, PublisherPublicKeyDigest publisher, ContentType type, ContentKeys keys, CCNFlowControl flowControl) throws IOException |
| Low-level constructor used by clients that need to specify flow control behavior.
|
Detailed Description
An output stream that adds a version to the names it outputs.
Reading this output with CCNVersionedInputStream allows retrieval of the "latest version" of a stream.
Constructor & Destructor Documentation
org.ccnx.ccn.io.CCNVersionedOutputStream.CCNVersionedOutputStream |
( |
ContentName |
baseName, |
|
|
CCNHandle |
handle | |
|
) |
| | throws IOException |
Constructor for a CCN output stream writing under a versioned name.
- Parameters:
-
| baseName | name prefix under which to write content segments; if it is already versioned, that version is used, otherwise a new version is added. |
| handle | if null, new handle created with CCNHandle.open(). |
- Exceptions:
-
| IOException | if stream setup fails |
Constructor for a CCN output stream writing under a versioned name.
- Parameters:
-
| baseName | name prefix under which to write content segments; if it is already versioned, that version is used, otherwise a new version is added. |
| publisher | key to use to sign the segments, if null, default for user is used. |
| handle | if null, new handle created with CCNHandle.open() |
- Exceptions:
-
| IOException | if stream setup fails |
Constructor for a CCN output stream writing under a versioned name.
- Parameters:
-
| baseName | name prefix under which to write content segments; if it is already versioned, that version is used, otherwise a new version is added. |
| keys | keys with which to encrypt content, if null content either unencrypted or keys retrieved according to local policy |
| handle | if null, new handle created with CCNHandle.open() |
- Exceptions:
-
| IOException | if stream setup fails |
Constructor for a CCN output stream writing under a versioned name.
- Parameters:
-
| baseName | name prefix under which to write content segments; if it is already versioned, that version is used, otherwise a new version is added. |
| locator | key locator to use, if null, default for key is used. |
| publisher | key to use to sign the segments, if null, default for user is used. |
| keys | keys with which to encrypt content, if null content either unencrypted or keys retrieved according to local policy |
| handle | if null, new handle created with CCNHandle.open() |
- Exceptions:
-
| IOException | if stream setup fails |
Constructor for a CCN output stream writing under a versioned name.
- Parameters:
-
| baseName | name prefix under which to write content segments; if it is already versioned, that version is used, otherwise a new version is added. |
| locator | key locator to use, if null, default for key is used. |
| publisher | key to use to sign the segments, if null, default for user is used. |
| type | type to mark content (see ContentType), if null, DATA is used; if content encrypted, ENCR is used. |
| keys | keys with which to encrypt content, if null content either unencrypted or keys retrieved according to local policy |
| handle | if null, new handle created with CCNHandle.open(). |
- Exceptions:
-
| IOException | if stream setup fails |
Low-level constructor used by clients that need to specify flow control behavior.
- Parameters:
-
| baseName | name prefix under which to write content segments; if it is already versioned, that version is used, otherwise a new version is added. |
| locator | key locator to use, if null, default for key is used. |
| publisher | key to use to sign the segments, if null, default for user is used. |
| type | type to mark content (see ContentType), if null, DATA is used; if content encrypted, ENCR is used. |
| keys | keys with which to encrypt content, if null content either unencrypted or keys retrieved according to local policy |
| flowControl | flow controller used to buffer output content |
- Exceptions:
-
| IOException | if flow controller setup fails |
The documentation for this class was generated from the following file:
- src/org/ccnx/ccn/io/CCNVersionedOutputStream.java