Class for retrieving content on a separate thread. More...
Public Member Functions | |
LocalSaveContentRetriever (CCNHandle h, ContentName n, JEditorPane p) | |
Constructor for the LocalSaveContentRetriever. | |
void | run () |
run() method for the thread that saves content to a filesystem. |
Class for retrieving content on a separate thread.
This is called by the ContentExplorer for displaying txt in the preview pane, popup windows, saving content to a local filesystem and for interfacing with media players (upcoming).
org.ccnx.ccn.utils.explorer.LocalSaveContentRetriever.LocalSaveContentRetriever | ( | CCNHandle | h, | |
ContentName | n, | |||
JEditorPane | p | |||
) |
Constructor for the LocalSaveContentRetriever.
h | CCNHandle to use for downloading the content | |
n | ContentName of the content object name to download | |
p | Preview pane to show download status |
void org.ccnx.ccn.utils.explorer.LocalSaveContentRetriever.run | ( | ) |
run() method for the thread that saves content to a filesystem.
This method creates and displays a JFileChooser. The user selects a location to save the content. If the selected file cannot be created or written to, the method returns and the content is not retrieved. Status for this operation is displayed in the ContentExplorer preview pane.