|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.drew.metadata.Metadata
public final class Metadata
A top-level object to hold various types of metadata (such as Exif or IPTC) relating to one entity (such as a file or stream). Metadata objects may contain zero or more directories. Each directory may contain zero or more tags with corresponding values.
| Field Summary | |
|---|---|
private ArrayList |
directoryList
List of Directory objects set against this object. |
private HashMap |
directoryMap
|
| Constructor Summary | |
|---|---|
Metadata()
Creates a new instance of Metadata. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final HashMap directoryMap
private final ArrayList directoryList
| Constructor Detail |
|---|
public Metadata()
| Method Detail |
|---|
public Iterator getDirectoryIterator()
public int getDirectoryCount()
public Directory getDirectory(Class type)
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.
public boolean containsDirectory(Class type)
type - the Directory type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||