|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.randelshofer.media.tiff.IFD
public class IFD
Represents a TIFF Image File Directory (IFD).
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 Summary | |
|---|---|
IFD(long offset,
boolean hasNextOffset)
|
|
| Method Summary | |
|---|---|
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 IFDEntrys. |
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IFD(long offset,
boolean hasNextOffset)
| Method Detail |
|---|
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()
IFDEntrys.
public java.lang.String toString()
toString in class java.lang.Objectpublic long getLength()
|
Copyright 2011-01-06 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||