Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.drew.metadata
Class Metadata  view Metadata download Metadata.java

java.lang.Object
  extended bycom.drew.metadata.Metadata
All Implemented Interfaces:
java.io.Serializable

public final class Metadata
extends java.lang.Object
implements java.io.Serializable

Result from an exif extraction operation, containing all tags, their values and support for retrieving them.


Field Summary
private  java.util.ArrayList directoryList
          List of Directory objects set against this object.
private  java.util.HashMap directoryMap
           
 
Constructor Summary
Metadata()
          Creates a new instance of Metadata.
 
Method Summary
 boolean containsDirectory(java.lang.Class type)
          Indicates whether a given directory type has been created in this metadata repository.
 Directory getDirectory(java.lang.Class type)
           
 int getDirectoryCount()
          Returns a count of unique directories in this metadata collection.
 java.util.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

directoryMap

private java.util.HashMap directoryMap

directoryList

private final java.util.ArrayList directoryList
List of Directory objects set against this object. Keeping a list handy makes creation of an Iterator and counting tags simple.

Constructor Detail

Metadata

public Metadata()
Creates a new instance of Metadata. Package private.

Method Detail

getDirectoryIterator

public java.util.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.


getDirectoryCount

public int getDirectoryCount()
Returns a count of unique directories in this metadata collection.


getDirectory

public Directory getDirectory(java.lang.Class type)

containsDirectory

public boolean containsDirectory(java.lang.Class type)
Indicates whether a given directory type has been created in this metadata repository. Directories are created by calling getDirectory(Class).