Public Member Functions | |
ContentWriter (CCNHandle h, ContentName name, File f, JEditorPane pane) | |
Constructor for a ContentWriter. | |
void | setHTMLPane (JEditorPane pane) |
Method to set the JEditorPane. | |
void | setFile (File f) |
Method to set the file selected for storing in a repository. | |
void | setContentName (ContentName name) |
Method to set the ContentName to write the file to. | |
void | setCCNHandle (CCNHandle h) |
Method to set the CCNHandle for storing the file in a repository. | |
void | run () |
Run method for the ContentWriter thread. |
org.ccnx.ccn.utils.explorer.ContentWriter.ContentWriter | ( | CCNHandle | h, | |
ContentName | name, | |||
File | f, | |||
JEditorPane | pane | |||
) |
Constructor for a ContentWriter.
h | CCNHandle | |
name | ContentName to write the file to | |
f | The File selected to store in a repo | |
pane | JEditorPane for displaying status |
void org.ccnx.ccn.utils.explorer.ContentWriter.setHTMLPane | ( | JEditorPane | pane | ) |
Method to set the JEditorPane.
pane | JEditorPane used for displaying status. |
void org.ccnx.ccn.utils.explorer.ContentWriter.setFile | ( | File | f | ) |
Method to set the file selected for storing in a repository.
f | File to store in a repository |
void org.ccnx.ccn.utils.explorer.ContentWriter.setContentName | ( | ContentName | name | ) |
Method to set the ContentName to write the file to.
name | ContentName for the file to store in a repository |
void org.ccnx.ccn.utils.explorer.ContentWriter.setCCNHandle | ( | CCNHandle | h | ) |
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.