org.ccnx.ccn.utils.explorer.ContentWriter Class Reference
Class used by the ContentExplorer to write files to a repository.
More...
List of all members.
Detailed Description
Class used by the ContentExplorer to write files to a repository.
Constructor & Destructor Documentation
org.ccnx.ccn.utils.explorer.ContentWriter.ContentWriter |
( |
CCNHandle |
h, |
|
|
ContentName |
name, |
|
|
File |
f, |
|
|
JEditorPane |
pane | |
|
) |
| | |
Constructor for a ContentWriter.
- Parameters:
-
| h | CCNHandle |
| name | ContentName to write the file to |
| f | The File selected to store in a repo |
| pane | JEditorPane for displaying status |
Member Function Documentation
void org.ccnx.ccn.utils.explorer.ContentWriter.run |
( |
|
) |
|
Run method for the ContentWriter thread.
The method checks if all of the relevant variables are not null. The thread then creates a RepositoryFileOutputStream to write the file out to a repository. The preview pane is used to display the status of the upload and if it fails, the exception message.
- Returns:
- void
- See also:
- RepositoryFileOutputStream
void org.ccnx.ccn.utils.explorer.ContentWriter.setCCNHandle |
( |
CCNHandle |
h |
) |
|
Method to set the CCNHandle for storing the file in a repository.
- Parameters:
-
- Returns:
- void
void org.ccnx.ccn.utils.explorer.ContentWriter.setContentName |
( |
ContentName |
name |
) |
|
Method to set the ContentName to write the file to.
- Parameters:
-
| name | ContentName for the file to store in a repository |
- Returns:
- void
void org.ccnx.ccn.utils.explorer.ContentWriter.setFile |
( |
File |
f |
) |
|
Method to set the file selected for storing in a repository.
- Parameters:
-
| f | File to store in a repository |
- Returns:
- void
void org.ccnx.ccn.utils.explorer.ContentWriter.setHTMLPane |
( |
JEditorPane |
pane |
) |
|
Method to set the JEditorPane.
- Parameters:
-
| pane | JEditorPane used for displaying status. |
- Returns:
- void
The documentation for this class was generated from the following file:
- src/org/ccnx/ccn/utils/explorer/ContentWriter.java