com.drew.metadata
Class Metadata
java.lang.Object
com.drew.metadata.Metadata
- Serializable
public final class Metadata
extends java.lang.Object
implements Serializable
Result from an exif extraction operation, containing all tags, their
values and support for retrieving them.
- Drew Noakes http://drewnoakes.com
Metadata() - Creates a new instance of Metadata.
|
boolean | containsDirectory(Class type) - Indicates whether a given directory type has been created in this metadata
repository.
|
Directory | getDirectory(Class type) - Returns a
Directory of specified type.
|
int | getDirectoryCount() - Returns a count of unique directories in this metadata collection.
|
Iterator | getDirectoryIterator() - Creates an Iterator over the tag types set against this image, preserving the order
in which they were set.
|
Metadata
public Metadata()
Creates a new instance of Metadata. Package private.
containsDirectory
public boolean containsDirectory(Class type)
Indicates whether a given directory type has been created in this metadata
repository. Directories are created by calling getDirectory(Class).
type
- the Directory type
- true if the metadata directory has been created
getDirectory
public Directory getDirectory(Class type)
Returns a Directory
of specified type. If this Metadata
object already contains
such a directory, it is returned. Otherwise a new instance of this directory will be created and stored within
this Metadata object.
type
- the type of the Directory implementation required.
- a directory of the specified type.
getDirectoryCount
public int getDirectoryCount()
Returns a count of unique directories in this metadata collection.
- the number of unique directory types set for this metadata collection
getDirectoryIterator
public Iterator getDirectoryIterator()
Creates an Iterator over the tag types set against this image, preserving the order
in which they were set. Should the same tag have been set more than once, it's first
position is maintained, even though the final value is used.
- an Iterator of tag types set for this image
Copyright © 2006 Drew Noakes. All Rights Reserved.