|
||||||||||
| 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 the various types of metadata (Exif/IPTC/etc) related 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.
| Constructor Summary | |
|---|---|
Metadata()
|
|
| Method Summary | ||
|---|---|---|
boolean |
containsDirectory(Class<? extends Directory> type)
Indicates whether a given directory type has been created in this metadata repository. |
|
Iterable<Directory> |
getDirectories()
Returns an objects for iterating over Directory objects in the order in which they were added. |
|
|
getDirectory(Class<T> type)
If this Metadata object contains a Directory of the specified type, it is returned. |
|
int |
getDirectoryCount()
Returns a count of unique directories in this metadata collection. |
|
|
getOrCreateDirectory(Class<T> type)
Returns a Directory of specified type. |
|
boolean |
hasErrors()
Indicates whether any errors were reported during the reading of metadata values. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Metadata()
| Method Detail |
|---|
public Iterable<Directory> getDirectories()
public int getDirectoryCount()
public <T extends Directory> T getOrCreateDirectory(Class<T> 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 <T extends Directory> T getDirectory(Class<T> type)
Metadata object contains a Directory of the specified type, it is returned.
Otherwise null is returned.
T - the Directory typetype - the Directory type
null.public boolean containsDirectory(Class<? extends Directory> type)
getOrCreateDirectory(Class).
type - the Directory type
public boolean hasErrors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||