org.ccnx.ccn.profiles.metadata.ThumbnailProfile Class Reference

Access metadata files in the thumbnail namespace. More...

Inheritance diagram for org.ccnx.ccn.profiles.metadata.ThumbnailProfile:

org.ccnx.ccn.profiles.CCNProfile

List of all members.

Static Public Member Functions

static ContentName thumbnailNamespace (ContentName baseName)
 Get the preset directory level namespace for metadata for thumbnails based on a base file.
static ContentName thumbnailName (ContentName baseName)
static ContentName getLatestVersion (ContentName baseName, byte[] thumbNailName, long timeout, CCNHandle handle) throws IOException
 Get the latest version of a thumbnail metadata file which is associated with a base file.

Static Public Attributes

static final CommandMarker THUMBNAIL_MARKER

Classes

class  ThumbnailNamer


Detailed Description

Access metadata files in the thumbnail namespace.

By convention thumbnails related to a file are placed in a namespace named thumbnail which is in the file's metadata namespace. Locating the latest version of a particular thumbnail based on a base file name may involve first locating the latest version of the base file, then the latest version of the requested thumbnail.


Member Function Documentation

static ContentName org.ccnx.ccn.profiles.metadata.ThumbnailProfile.thumbnailNamespace ( ContentName  baseName  )  [static]

Get the preset directory level namespace for metadata for thumbnails based on a base file.

Parameters:
baseName the base file as a ContentName
Returns:
the thumbnail meta directory as a ContentName

static ContentName org.ccnx.ccn.profiles.metadata.ThumbnailProfile.getLatestVersion ( ContentName  baseName,
byte[]  thumbNailName,
long  timeout,
CCNHandle  handle 
) throws IOException [static]

Get the latest version of a thumbnail metadata file which is associated with a base file.

Before searching for the thumbnail version, we find the latest version of the base file

Parameters:
baseName the base file as a ContentName
thumbNailName the thumbnail filename as a byte array
timeout time to search for the latest version in ms. Applies separately to each latest version search.
handle CCNHandle to use for search.
Returns:
Exceptions:
IOException 


Member Data Documentation

final CommandMarker org.ccnx.ccn.profiles.metadata.ThumbnailProfile.THUMBNAIL_MARKER [static]

Initial value:

 
                CommandMarker.commandMarker(MetadataProfile.METADATA_NAMESPACE, "thumbnail")


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

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