Class TiffImageWriterLossless
- java.lang.Object
-
- org.apache.commons.imaging.formats.tiff.write.TiffImageWriterBase
-
- org.apache.commons.imaging.formats.tiff.write.TiffImageWriterLossless
-
public class TiffImageWriterLossless extends TiffImageWriterBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
TiffImageWriterLossless.BufferOutputStream
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Comparator<TiffElement>
ELEMENT_SIZE_COMPARATOR
private byte[]
exifBytes
private static java.util.Comparator<TiffOutputItem>
ITEM_SIZE_COMPARATOR
-
Fields inherited from class org.apache.commons.imaging.formats.tiff.write.TiffImageWriterBase
byteOrder
-
-
Constructor Summary
Constructors Constructor Description TiffImageWriterLossless(byte[] exifBytes)
TiffImageWriterLossless(java.nio.ByteOrder byteOrder, byte[] exifBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.util.List<TiffElement>
analyzeOldTiff(java.util.Map<java.lang.Integer,TiffOutputField> frozenFields)
private long
updateOffsetsStep(java.util.List<TiffElement> analysis, java.util.List<TiffOutputItem> outputItems)
void
write(java.io.OutputStream os, TiffOutputSet outputSet)
private void
writeStep(java.io.OutputStream os, TiffOutputSet outputSet, java.util.List<TiffElement> analysis, java.util.List<TiffOutputItem> outputItems, long outputLength)
-
Methods inherited from class org.apache.commons.imaging.formats.tiff.write.TiffImageWriterBase
imageDataPaddingLength, validateDirectories, writeImage, writeImageFileHeader, writeImageFileHeader
-
-
-
-
Field Detail
-
exifBytes
private final byte[] exifBytes
-
ELEMENT_SIZE_COMPARATOR
private static final java.util.Comparator<TiffElement> ELEMENT_SIZE_COMPARATOR
-
ITEM_SIZE_COMPARATOR
private static final java.util.Comparator<TiffOutputItem> ITEM_SIZE_COMPARATOR
-
-
Method Detail
-
analyzeOldTiff
private java.util.List<TiffElement> analyzeOldTiff(java.util.Map<java.lang.Integer,TiffOutputField> frozenFields) throws ImageWriteException, java.io.IOException
- Throws:
ImageWriteException
java.io.IOException
-
write
public void write(java.io.OutputStream os, TiffOutputSet outputSet) throws java.io.IOException, ImageWriteException
- Specified by:
write
in classTiffImageWriterBase
- Throws:
java.io.IOException
ImageWriteException
-
updateOffsetsStep
private long updateOffsetsStep(java.util.List<TiffElement> analysis, java.util.List<TiffOutputItem> outputItems)
-
writeStep
private void writeStep(java.io.OutputStream os, TiffOutputSet outputSet, java.util.List<TiffElement> analysis, java.util.List<TiffOutputItem> outputItems, long outputLength) throws java.io.IOException, ImageWriteException
- Throws:
java.io.IOException
ImageWriteException
-
-