public class IFD
extends java.lang.Object
An IFD consists of a 2-byte count of the number of directory entries (i.e., the number of fields), followed by a sequence of 12-byte field entries, followed by a 4-byte offset of the next IFD (or 0 if none).
There must be at least 1 IFD in a TIFF file and each IFD must have at least one entry.
Constructor and Description |
---|
IFD(long offset,
boolean hasNextOffset) |
Modifier and Type | Method and Description |
---|---|
IFDEntry |
get(int index)
Returns the
IFDEntry at the specified index. |
int |
getCount()
Returns the number of entries in the IFD.
|
java.util.List<IFDEntry> |
getEntries()
Returns an unmodifiale list of the
IFDEntry s. |
long |
getLength()
Returns the length of this IFD in bytes.
|
long |
getNextOffset()
Gets the offset of the next IFD.
|
long |
getOffset()
Returns the offset of the IFD.
|
boolean |
hasNextOffset() |
java.lang.String |
toString() |
public long getOffset()
public long getNextOffset()
public boolean hasNextOffset()
public int getCount()
public IFDEntry get(int index)
IFDEntry
at the specified index.public java.util.List<IFDEntry> getEntries()
IFDEntry
s.public java.lang.String toString()
toString
in class java.lang.Object
public long getLength()