Class TiffOutputDirectory
java.lang.Object
org.apache.commons.imaging.formats.tiff.write.TiffOutputItem
org.apache.commons.imaging.formats.tiff.write.TiffOutputDirectory
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.imaging.formats.tiff.write.TiffOutputItem
TiffOutputItem.Value
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ByteOrder
static final Comparator
<TiffOutputDirectory> private final List
<TiffOutputField> private JpegImageData
private TiffOutputDirectory
private TiffImageData
final int
Fields inherited from class org.apache.commons.imaging.formats.tiff.write.TiffOutputItem
UNDEFINED_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(TagInfoAsciiOrByte tagInfo, String... values) void
add
(TagInfoAsciiOrRational tagInfo, String... values) void
add
(TagInfoAsciiOrRational tagInfo, RationalNumber... values) void
add
(TagInfoAscii tagInfo, String... values) void
add
(TagInfoByteOrShort tagInfo, byte... values) void
add
(TagInfoByteOrShort tagInfo, short... values) void
add
(TagInfoByte tagInfo, byte value) void
add
(TagInfoBytes tagInfo, byte... values) void
add
(TagInfoDouble tagInfo, double value) void
add
(TagInfoDoubles tagInfo, double... values) void
add
(TagInfoFloat tagInfo, float value) void
add
(TagInfoFloats tagInfo, float... values) void
add
(TagInfoGpsText tagInfo, String value) void
add
(TagInfoLong tagInfo, int value) void
add
(TagInfoLongs tagInfo, int... values) void
add
(TagInfoRational tagInfo, RationalNumber value) void
add
(TagInfoRationals tagInfo, RationalNumber... values) void
add
(TagInfoSByte tagInfo, byte value) void
add
(TagInfoSBytes tagInfo, byte... values) void
add
(TagInfoShortOrLongOrRational tagInfo, int... values) void
add
(TagInfoShortOrLongOrRational tagInfo, short... values) void
add
(TagInfoShortOrLongOrRational tagInfo, RationalNumber... values) void
add
(TagInfoShortOrLong tagInfo, int... values) void
add
(TagInfoShortOrLong tagInfo, short... values) void
add
(TagInfoShortOrRational tagInfo, short... values) void
add
(TagInfoShortOrRational tagInfo, RationalNumber... values) void
add
(TagInfoShort tagInfo, short value) void
add
(TagInfoShorts tagInfo, short... values) void
add
(TagInfoSLong tagInfo, int value) void
add
(TagInfoSLongs tagInfo, int... values) void
add
(TagInfoSRational tagInfo, RationalNumber value) void
add
(TagInfoSRationals tagInfo, RationalNumber... values) void
add
(TagInfoSShort tagInfo, short value) void
add
(TagInfoSShorts tagInfo, short... values) void
add
(TagInfoXpString tagInfo, String value) void
add
(TiffOutputField field) findField
(int tag) Finds the TiffOutputField for the given tag from this TiffOutputDirectory.Finds the TiffOutputField for the given TagInfo from this TiffOutputDirectory.int
protected List
<TiffOutputItem> getOutputItems
(TiffOutputSummary outputSummary) void
removeField
(int tag) void
removeField
(TagInfo tagInfo) private void
removeFieldIfPresent
(TagInfo tagInfo) void
setJpegImageData
(JpegImageData rawJpegImageData) void
setNextDirectory
(TiffOutputDirectory nextDirectory) void
setTiffImageData
(TiffImageData rawTiffImageData) void
void
Methods inherited from class org.apache.commons.imaging.formats.tiff.write.TiffOutputItem
getOffset, setOffset
-
Field Details
-
type
public final int type -
fields
-
byteOrder
-
nextDirectory
-
COMPARATOR
-
jpegImageData
-
tiffImageData
-
-
Constructor Details
-
TiffOutputDirectory
-
-
Method Details
-
setNextDirectory
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
public void add(TagInfoShortOrLongOrRational tagInfo, RationalNumber... values) throws ImageWriteException - Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
public void add(TagInfoShortOrRational tagInfo, RationalNumber... values) throws ImageWriteException - Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
- Throws:
ImageWriteException
-
add
public void add(TagInfoAsciiOrRational tagInfo, RationalNumber... values) throws ImageWriteException - Throws:
ImageWriteException
-
add
-
getFields
-
removeField
-
removeField
public void removeField(int tag) -
findField
Finds the TiffOutputField for the given TagInfo from this TiffOutputDirectory.If there is no field matching the given TagInfo, null will be returned.
- Parameters:
tagInfo
- the TagInfo specifying the field- Returns:
- the field matching tagInfo or null, if the field isn't present
- See Also:
-
findField
Finds the TiffOutputField for the given tag from this TiffOutputDirectory.If there is no field matching the given tag, null will be returned.
- Parameters:
tag
- the tag specifying the field- Returns:
- the field matching tagInfo or null, if the field isn't present
- See Also:
-
sortFields
public void sortFields() -
description
-
writeItem
- Specified by:
writeItem
in classTiffOutputItem
- Throws:
IOException
ImageWriteException
-
setJpegImageData
-
getRawJpegImageData
-
setTiffImageData
-
getRawTiffImageData
-
getItemLength
public int getItemLength()- Specified by:
getItemLength
in classTiffOutputItem
-
getItemDescription
- Specified by:
getItemDescription
in classTiffOutputItem
-
removeFieldIfPresent
-
getOutputItems
protected List<TiffOutputItem> getOutputItems(TiffOutputSummary outputSummary) throws ImageWriteException - Throws:
ImageWriteException
-