Class TiffOutputDirectory
java.lang.Object
org.apache.commons.imaging.formats.tiff.write.AbstractTiffOutputItem
org.apache.commons.imaging.formats.tiff.write.TiffOutputDirectory
- All Implemented Interfaces:
Iterable<TiffOutputField>
public final class TiffOutputDirectory
extends AbstractTiffOutputItem
implements Iterable<TiffOutputField>
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractTiffOutputItem
AbstractTiffOutputItem.Value -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate AbstractTiffImageDataprivate final ByteOrderstatic final Comparator<TiffOutputDirectory> private final List<TiffOutputField> private JpegImageDataprivate TiffOutputDirectoryprivate final intFields inherited from class AbstractTiffOutputItem
UNDEFINED_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(TagInfoAsciiOrByte tagInfo, String... values) voidadd(TagInfoAsciiOrRational tagInfo, String... values) voidadd(TagInfoAsciiOrRational tagInfo, RationalNumber... values) voidadd(TagInfoAscii tagInfo, String... values) voidadd(TagInfoByteOrShort tagInfo, byte... values) voidadd(TagInfoByteOrShort tagInfo, short... values) voidadd(TagInfoByte tagInfo, byte value) voidadd(TagInfoBytes tagInfo, byte... values) voidadd(TagInfoDouble tagInfo, double value) voidadd(TagInfoDoubles tagInfo, double... values) voidadd(TagInfoFloat tagInfo, float value) voidadd(TagInfoFloats tagInfo, float... values) voidadd(TagInfoGpsText tagInfo, String value) voidadd(TagInfoLong tagInfo, int value) voidadd(TagInfoLongs tagInfo, int... values) voidadd(TagInfoRational tagInfo, RationalNumber value) voidadd(TagInfoRationals tagInfo, RationalNumber... values) voidadd(TagInfoSByte tagInfo, byte value) voidadd(TagInfoSBytes tagInfo, byte... values) voidadd(TagInfoShortOrLongOrRational tagInfo, int... values) voidadd(TagInfoShortOrLongOrRational tagInfo, short... values) voidadd(TagInfoShortOrLongOrRational tagInfo, RationalNumber... values) voidadd(TagInfoShortOrLong tagInfo, int... values) voidadd(TagInfoShortOrLong tagInfo, short... values) voidadd(TagInfoShortOrRational tagInfo, short... values) voidadd(TagInfoShortOrRational tagInfo, RationalNumber... values) voidadd(TagInfoShort tagInfo, short value) voidadd(TagInfoShorts tagInfo, short... values) voidadd(TagInfoSLong tagInfo, int value) voidadd(TagInfoSLongs tagInfo, int... values) voidadd(TagInfoSRational tagInfo, RationalNumber value) voidadd(TagInfoSRationals tagInfo, RationalNumber... values) voidadd(TagInfoSShort tagInfo, short value) voidadd(TagInfoSShorts tagInfo, short... values) voidadd(TagInfoXpString tagInfo, String value) voidadd(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.intprotected List<AbstractTiffOutputItem> getOutputItems(TiffOutputSummary outputSummary) intgetType()iterator()voidremoveField(int tag) voidremoveField(TagInfo tagInfo) private voidremoveFieldIfPresent(TagInfo tagInfo) voidsetJpegImageData(JpegImageData rawJpegImageData) voidsetNextDirectory(TiffOutputDirectory nextDirectory) voidsetTiffImageData(AbstractTiffImageData rawTiffImageData) voidvoidMethods inherited from class AbstractTiffOutputItem
getOffset, setOffsetMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
COMPARATOR
-
type
private final int type -
fields
-
byteOrder
-
nextDirectory
-
jpegImageData
-
abstractTiffImageData
-
-
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
- Specified by:
getItemDescriptionin classAbstractTiffOutputItem
-
getItemLength
public int getItemLength()- Specified by:
getItemLengthin classAbstractTiffOutputItem
-
getOutputItems
protected List<AbstractTiffOutputItem> getOutputItems(TiffOutputSummary outputSummary) throws ImagingException - Throws:
ImagingException
-
getRawJpegImageData
-
getRawTiffImageData
-
getType
public int getType() -
iterator
- Specified by:
iteratorin interfaceIterable<TiffOutputField>
-
removeField
public void removeField(int tag) -
removeField
-
removeFieldIfPresent
-
setJpegImageData
-
setNextDirectory
-
setTiffImageData
-
sortFields
public void sortFields() -
writeItem
- Specified by:
writeItemin classAbstractTiffOutputItem- Throws:
IOExceptionImagingException
-