|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.graphics.tiff.IFD
public final class IFD
An "Image File Directory" that defines characteristics about the TIFF image.
Constructor Summary | |
---|---|
IFD()
Create a new IFD . |
Method Summary | |
---|---|
void |
addTag(Tag tag)
Add a new Tag to the this IFD . |
void |
clear()
Clear all tags from the IFD. |
int |
getBigLength()
Get the number of bytes the tags in this IFD takes up when in BigTIFF format. |
int |
getCount()
Get the number of tags in this IFD. |
int |
getLength()
Get the number of bytes the tags in this IFD takes up. |
int |
getOptBigLength()
Used internally, not for public use. |
int |
getOptLength()
Used internally, not for public use. |
Tag |
getTag(int index)
Get a tag at the specified index. |
Tag |
getTagByType(int type)
Get a tag by the type. |
int |
indexOf(int type)
Get the index of a tag of the specified type. |
int |
indexOf(int type,
int startingIndex)
Get the index of a tag of the specified type. |
void |
insertTag(int index,
Tag tag)
Insert a tag at the specified index. |
void |
removeTag(int index)
Remove a tag at the specified index. |
void |
sort()
Sort the tags into a manner that is required by the TIFF specification. |
int |
write(Writer dat,
int dataOffset)
Write the IFD. |
int |
write(Writer dat,
int offset,
int dataOffset)
Write the IFD. |
long |
write(Writer dat,
long offset,
long dataOffset,
boolean big)
Write the IFD. |
long |
writeBig(Writer dat,
long dataOffset)
Write the IFD. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IFD()
IFD
.
Method Detail |
---|
public void addTag(Tag tag)
Tag
to the this IFD
. It is recommended to only add a tag once.
tag
- The Tag
to add.public void removeTag(int index)
index
- The index to remove the tag at.public void clear()
public Tag getTag(int index)
index
- The index to get the tag from.
public Tag getTagByType(int type)
type
- The type of tag to get.
public int indexOf(int type)
type
- The type of tag to get the index of.
public int indexOf(int type, int startingIndex)
type
- The type of tag to get the index of.startingIndex
- The starting index of the search.
public void insertTag(int index, Tag tag)
index
- The index to place the tag at.tag
- The tag to place, if this is null then it will be ignored.public int getCount()
public int getLength()
public int getBigLength()
public int getOptLength()
public int getOptBigLength()
public void sort()
public int write(Writer dat, int dataOffset) throws java.io.IOException
dat
- The rebuild.Graphics.tiff.tags.Writer
to write the IFD to.dataOffset
- The absolute position to write any extra data to.
java.io.IOException
- If any IO exception occurs.public int write(Writer dat, int offset, int dataOffset) throws java.io.IOException
dat
- The rebuild.Graphics.tiff.tags.Writer
to write the IFD to.offset
- The offset to the next IFD.dataOffset
- The absolute position to write any extra data to.
java.io.IOException
- If any IO exception occurs.public long writeBig(Writer dat, long dataOffset) throws java.io.IOException
dat
- The rebuild.Graphics.tiff.tags.Writer
to write the IFD to.dataOffset
- The absolute position to write any extra data to.
java.io.IOException
- If any IO exception occurs.public long write(Writer dat, long offset, long dataOffset, boolean big) throws java.io.IOException
dat
- The rebuild.Graphics.tiff.tags.Writer
to write the IFD to.offset
- The offset to the next IFD.dataOffset
- The absolute position to write any extra data to.big
- If this is writing a BigTIFF.
java.io.IOException
- If any IO exception occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |