|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrebuild.graphics.tiff.Tag
rebuild.graphics.tiff.tags.StripByteCountsTag
public final class StripByteCountsTag
For each strip, the number of bytes in the strip after compression.
Field Summary |
---|
Fields inherited from class rebuild.graphics.tiff.Tag |
---|
count, data, dataType, value |
Constructor Summary | |
---|---|
StripByteCountsTag(int stripsPerImage,
short planarConfig,
short sampleCount)
Create a new StripByteCounts tag. |
Method Summary | |
---|---|
protected boolean |
extraData(boolean big)
This method figures out if any extra data is exists, this method can search the data type, extra data, value, and count. |
long |
getByteCount(int strip)
Get the byte count for a particular strip. |
static short |
getTagTypeValue()
Get the Tag 's type. |
boolean |
hasDefault()
Get if this Tag can have a default value, often defined by a parameter-less constructor. |
boolean |
isDefault()
Unused. |
void |
setByteCount(int strip,
long byteCount)
Set the byte count for a particular strip. |
void |
setCount(int count)
Unused, use setCount(int, short, short) instead. |
void |
setCount(int stripsPerImage,
short planarConfig,
short sampleCount)
Set the number of strip items. |
void |
setCount(long count)
Unused, use setCount(int, short, short) instead. |
void |
setDataType(short dataType)
Data type is determined by the value. |
protected void |
setupForBigTIFF(boolean set)
Setup the tag for writing in a BigTIFF. |
void |
setValue(int value)
Unused. |
void |
writeData(Writer wr)
The extra data writer, if any extra data exists then this method will be called and (through internal methods) a offset to the data will be used in place of the value parameter. |
Methods inherited from class rebuild.graphics.tiff.Tag |
---|
equals, getBigCount, getBigValue, getCount, getDataType, getExtraData, getIfExtraDataExists, getTagType, getValue, hashCode, setExtraData, setValue, toString, write, write, write, write, writeBig |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StripByteCountsTag(int stripsPerImage, short planarConfig, short sampleCount)
stripsPerImage
- The number of strips per image. Must be at least 1.planarConfig
- The planar config to determine the number of strip planes needed.sampleCount
- The number of samples per pixel.Method Detail |
---|
public static short getTagTypeValue()
Tag
's type.
Tag
's type.public void setValue(int value)
setValue
in class Tag
value
- The value that the tag should contains.getValue
,
StripByteCountsTag#setByteCount(int, long)}
public void setDataType(short dataType)
setDataType
in class Tag
dataType
- The data type to set.setDataType
public void setCount(int count)
setCount(int, short, short)
instead.
setCount
in class Tag
count
- The number of values contained in the tag.Tag#setCount(int)}
public void setCount(long count)
setCount(int, short, short)
instead.
setCount
in class Tag
count
- The number of values contained in the tag.Tag#setCount(long)}
public void setCount(int stripsPerImage, short planarConfig, short sampleCount)
stripsPerImage
- The number of strips per image. Must be at least 1.planarConfig
- The planar config to determine the number of strip planes needed.sampleCount
- The number of samples per pixel.public void writeData(Writer wr) throws java.io.IOException
value
parameter.
writeData
in class Tag
wr
- The writer used to write the extra data.
java.io.IOException
- If any IO exception occurs.protected boolean extraData(boolean big)
extraData
in class Tag
big
- true
if the tag is being written to a BigTIFF, false
if otherwise.
protected void setupForBigTIFF(boolean set)
setupForBigTIFF
in class Tag
set
- true
if the tag should be preped for BigTIFF, false
if otherwise.public boolean hasDefault()
Tag
can have a default value, often defined by a parameter-less constructor.
hasDefault
in class Tag
true
if the Tag
has a default value, false
if otherwise. Default is false
.public boolean isDefault()
isDefault
in class Tag
true
if the Tag
's value is the default value, false
if otherwise.public long getByteCount(int strip)
strip
- The strip to get the byte count from.
public void setByteCount(int strip, long byteCount)
strip
- The strip to set the byte count to.byteCount
- The byte count to set for that strip.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |