org.ccnx.ccn.profiles.metadata.ThumbnailProfile Class Reference
Access metadata files in the thumbnail namespace.
More...
List of all members.
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.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:
-
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
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:
- src/org/ccnx/ccn/profiles/metadata/ThumbnailProfile.java