Class TiffImageWriterLossless
java.lang.Object
org.apache.commons.imaging.formats.tiff.write.AbstractTiffImageWriter
org.apache.commons.imaging.formats.tiff.write.TiffImageWriterLossless
TIFF lossless image writer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<AbstractTiffElement> private final byte[]private static final Comparator<AbstractTiffOutputItem> Fields inherited from class AbstractTiffImageWriter
byteOrder -
Constructor Summary
ConstructorsConstructorDescriptionTiffImageWriterLossless(byte[] exifBytes) TiffImageWriterLossless(ByteOrder byteOrder, byte[] exifBytes) -
Method Summary
Modifier and TypeMethodDescriptionprivate List<AbstractTiffElement> analyzeOldTiff(Map<Integer, TiffOutputField> frozenFields) private longupdateOffsetsStep(List<AbstractTiffElement> analysis, List<AbstractTiffOutputItem> outputItems) voidwrite(OutputStream os, TiffOutputSet outputSet) private voidwriteStep(OutputStream os, TiffOutputSet outputSet, List<AbstractTiffElement> analysis, List<AbstractTiffOutputItem> outputItems, long outputLength) Methods inherited from class AbstractTiffImageWriter
imageDataPaddingLength, validateDirectories, writeImage, writeImageFileHeader, writeImageFileHeader
-
Field Details
-
ELEMENT_SIZE_COMPARATOR
-
ITEM_SIZE_COMPARATOR
-
exifBytes
private final byte[] exifBytes
-
-
Constructor Details
-
TiffImageWriterLossless
public TiffImageWriterLossless(byte[] exifBytes) -
TiffImageWriterLossless
-
-
Method Details
-
analyzeOldTiff
private List<AbstractTiffElement> analyzeOldTiff(Map<Integer, TiffOutputField> frozenFields) throws ImagingException, IOException - Throws:
ImagingExceptionIOException
-
updateOffsetsStep
private long updateOffsetsStep(List<AbstractTiffElement> analysis, List<AbstractTiffOutputItem> outputItems) -
write
- Specified by:
writein classAbstractTiffImageWriter- Throws:
IOExceptionImagingException
-
writeStep
private void writeStep(OutputStream os, TiffOutputSet outputSet, List<AbstractTiffElement> analysis, List<AbstractTiffOutputItem> outputItems, long outputLength) throws IOException, ImagingException - Throws:
IOExceptionImagingException
-