Class TiffOutputDirectory
java.lang.Object
org.apache.commons.imaging.formats.tiff.write.TiffOutputDirectory
- All Implemented Interfaces:
Iterable<TiffOutputField>
-
Field Summary
Fields -
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 long
protected List
<org.apache.commons.imaging.formats.tiff.write.AbstractTiffOutputItem> getOutputItems
(org.apache.commons.imaging.formats.tiff.write.TiffOutputSummary outputSummary) int
getType()
iterator()
void
removeField
(int tag) void
removeField
(TagInfo tagInfo) void
setJpegImageData
(JpegImageData rawJpegImageData) void
setNextDirectory
(TiffOutputDirectory nextDirectory) protected void
setOffset
(long offset) void
setTiffImageData
(AbstractTiffImageData rawTiffImageData) void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
COMPARATOR
-
UNDEFINED_VALUE
public static final long UNDEFINED_VALUE- See Also:
-
-
Constructor Details
-
TiffOutputDirectory
-
-
Method Details
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
public void add(TagInfoShortOrLongOrRational tagInfo, RationalNumber... values) throws ImagingException - Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
- Throws:
ImagingException
-
add
-
description
-
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:
-
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:
-
getFields
-
getItemDescription
-
getItemLength
-
getOutputItems
protected List<org.apache.commons.imaging.formats.tiff.write.AbstractTiffOutputItem> getOutputItems(org.apache.commons.imaging.formats.tiff.write.TiffOutputSummary outputSummary) throws ImagingException - Throws:
ImagingException
-
getRawJpegImageData
-
getRawTiffImageData
-
getType
-
iterator
- Specified by:
iterator
in interfaceIterable<TiffOutputField>
-
removeField
-
removeField
-
setJpegImageData
-
setNextDirectory
-
setTiffImageData
-
sortFields
-
writeItem
- Throws:
IOException
ImagingException
-
getOffset
protected long getOffset() -
setOffset
protected void setOffset(long offset)
-