org.ccnx.ccn.utils.explorer.LocalSaveContentRetriever Class Reference

Class for retrieving content on a separate thread. More...

Inheritance diagram for org.ccnx.ccn.utils.explorer.LocalSaveContentRetriever:

List of all members.

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.


Detailed Description

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).


Constructor & Destructor Documentation

org.ccnx.ccn.utils.explorer.LocalSaveContentRetriever.LocalSaveContentRetriever ( CCNHandle  h,
ContentName  n,
JEditorPane  p 
)

Constructor for the LocalSaveContentRetriever.

Parameters:
h CCNHandle to use for downloading the content
n ContentName of the content object name to download
p Preview pane to show download status


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Generated on Thu Feb 16 00:45:12 2012 for Content-Centric Networking in Java by  doxygen 1.5.6