Class AbstractDirectory
java.lang.Object
com.twelvemonkeys.imageio.metadata.AbstractDirectory
- Direct Known Subclasses:
AbstractCompoundDirectory
,IFD
AbstractDirectory
- Version:
- $Id: AbstractDirectory.java,v 1.0 Nov 11, 2009 5:31:04 PM haraldk Exp$
- Author:
- Harald Kuhr, last modified by $Author: haraldk$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected final void
ThrowsUnsupportedOperationException
if this directory is read-only.boolean
getEntryByFieldName
(String fieldName) getEntryById
(Object identifier) int
hashCode()
boolean
This implementation returnstrue
.iterator()
boolean
int
size()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
AbstractDirectory
-
-
Method Details
-
getEntryById
- Specified by:
getEntryById
in interfaceDirectory
-
getEntryByFieldName
- Specified by:
getEntryByFieldName
in interfaceDirectory
-
iterator
-
assertMutable
protected final void assertMutable()ThrowsUnsupportedOperationException
if 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:
isReadOnly
in interfaceDirectory
- Returns:
true
-
hashCode
public int hashCode() -
equals
-
toString
-