|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.moss.util.image.ExifToolWrapper
public class ExifToolWrapper
| Constructor Summary | |
|---|---|
ExifToolWrapper(java.io.File exifTool)
Creates a new ExifTool wrapper, pointing to the ExifTool command line file at the given location. |
|
| Method Summary | |
|---|---|
byte[] |
getBinaryTagFromFile(java.io.File image,
java.lang.String tagName,
int maxSize)
Returns a byte array of a binary tag with the given name. |
java.util.Map<java.io.File,byte[]> |
getBinaryTagFromFiles(java.util.Collection<java.io.File> files,
java.lang.String tagName)
|
java.util.Map<java.lang.String,java.lang.String> |
getTagsFromFile(java.io.File image,
java.util.Set<java.lang.String> tagNames)
|
java.util.Map<java.io.File,java.util.Map<java.lang.String,java.lang.String>> |
getTagsFromFiles(java.util.Collection<java.io.File> images,
java.util.Set<java.lang.String> tagNames)
Returns a map of the given tag names and values for all given files. |
java.lang.String |
setTagsToFile(java.io.File image,
java.util.Map<java.lang.String,java.lang.String> tags)
|
java.lang.String |
setTagsToFileFromDatafile(java.io.File image,
java.util.Map<java.lang.String,java.io.File> tags)
|
java.lang.String |
setTagsToFiles(java.util.Collection<java.io.File> images,
java.util.Map<java.lang.String,java.lang.String> tags)
Sets the given tags to the file. |
java.lang.String |
setTagsToFilesFromDatafile(java.util.Set<java.io.File> images,
java.util.Map<java.lang.String,java.io.File> tags)
Sets the given tags in the scpecified images using a data file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExifToolWrapper(java.io.File exifTool)
throws java.io.FileNotFoundException
exifTool - The exiftool command line utility
java.io.FileNotFoundException| Method Detail |
|---|
public byte[] getBinaryTagFromFile(java.io.File image,
java.lang.String tagName,
int maxSize)
image - File to load fromtagName - Name of the tag to loadmaxSize - The maximum size of the value. You can either approximate this, or get the exact value from the getTagsFromFile(), and parse the exact number.
public java.util.Map<java.io.File,byte[]> getBinaryTagFromFiles(java.util.Collection<java.io.File> files,
java.lang.String tagName)
public java.util.Map<java.io.File,java.util.Map<java.lang.String,java.lang.String>> getTagsFromFiles(java.util.Collection<java.io.File> images,
java.util.Set<java.lang.String> tagNames)
images - The images to read fromtagNames - A set of all the names of tags to read.
public java.util.Map<java.lang.String,java.lang.String> getTagsFromFile(java.io.File image,
java.util.Set<java.lang.String> tagNames)
image - tagNames -
public java.lang.String setTagsToFiles(java.util.Collection<java.io.File> images,
java.util.Map<java.lang.String,java.lang.String> tags)
image - File to save tags totags - Map of tags and associated values
public java.lang.String setTagsToFile(java.io.File image,
java.util.Map<java.lang.String,java.lang.String> tags)
public java.lang.String setTagsToFilesFromDatafile(java.util.Set<java.io.File> images,
java.util.Map<java.lang.String,java.io.File> tags)
images - Set of images to updatetags - Set of tags and files to read each tag from.
public java.lang.String setTagsToFileFromDatafile(java.io.File image,
java.util.Map<java.lang.String,java.io.File> tags)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||