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 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 longprotected List<org.apache.commons.imaging.formats.tiff.write.AbstractTiffOutputItem>getOutputItems(org.apache.commons.imaging.formats.tiff.write.TiffOutputSummary outputSummary) intgetType()iterator()voidremoveField(int tag) voidremoveField(TagInfo tagInfo) voidsetJpegImageData(JpegImageData rawJpegImageData) voidsetNextDirectory(TiffOutputDirectory nextDirectory) protected voidsetOffset(long offset) voidsetTiffImageData(AbstractTiffImageData rawTiffImageData) voidvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
iteratorin interfaceIterable<TiffOutputField>
-
removeField
-
removeField
-
setJpegImageData
-
setNextDirectory
-
setTiffImageData
-
sortFields
-
writeItem
- Throws:
IOExceptionImagingException
-
getOffset
protected long getOffset() -
setOffset
protected void setOffset(long offset)
-