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 |
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.
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.
baseName | the base file 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
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. |
IOException |
final CommandMarker org.ccnx.ccn.profiles.metadata.ThumbnailProfile.THUMBNAIL_MARKER [static] |
Initial value:
CommandMarker.commandMarker(MetadataProfile.METADATA_NAMESPACE, "thumbnail")