Class AbstractDirectory
java.lang.Object
com.twelvemonkeys.imageio.metadata.AbstractDirectory
- Direct Known Subclasses:
AbstractCompoundDirectory,IFD,IPTCDirectory,PSDDirectory,RDFDescription
AbstractDirectory
- Version:
- $Id: AbstractDirectory.java,v 1.0 Nov 11, 2009 5:31:04 PM haraldk Exp$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected final voidThrowsUnsupportedOperationExceptionif this directory is read-only.booleangetEntryByFieldName(String fieldName) getEntryById(Object identifier) inthashCode()booleanThis implementation returnstrue.iterator()booleanintsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
entries
-
unmodifiable
-
-
Constructor Details
-
AbstractDirectory
-
-
Method Details
-
getEntryById
- Specified by:
getEntryByIdin interfaceDirectory
-
getEntryByFieldName
- Specified by:
getEntryByFieldNamein interfaceDirectory
-
iterator
-
assertMutable
protected final void assertMutable()ThrowsUnsupportedOperationExceptionif this directory is read-only.- Throws:
UnsupportedOperationException- if this directory is read-only.- See Also:
-
add
-
remove
-
size
public int size() -
isReadOnly
public boolean isReadOnly()This implementation returnstrue. Subclasses should override this method, if the directory is mutable.- Specified by:
isReadOnlyin interfaceDirectory- Returns:
true
-
hashCode
public int hashCode() -
equals
-
toString
-