Class AbstractDirectory
java.lang.Object
com.twelvemonkeys.imageio.metadata.AbstractDirectory
- Direct Known Subclasses:
AbstractCompoundDirectory, IFD, IPTCDirectory, PSDDirectory, RDFDescription
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCollection-like APIprotected final voidThrowsUnsupportedOperationExceptionif this directory is read-only.booleangetEntryByFieldName(String fieldName) getEntryById(Object identifier) inthashCode()Standard object supportbooleanThis implementation returnstrue.iterator()booleanintsize()toString()Methods inherited from interface 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
-
isReadOnly
public boolean isReadOnly()This implementation returnstrue. Subclasses should override this method, if the directory is mutable.- Specified by:
isReadOnlyin interfaceDirectory- Returns:
true
-
hashCode
-
equals
-
toString
-