Class TiffImageWriterBase
- java.lang.Object
-
- org.apache.commons.imaging.formats.tiff.write.TiffImageWriterBase
-
- Direct Known Subclasses:
TiffImageWriterLossless,TiffImageWriterLossy
public abstract class TiffImageWriterBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.nio.ByteOrderbyteOrder
-
Constructor Summary
Constructors Constructor Description TiffImageWriterBase()TiffImageWriterBase(java.nio.ByteOrder byteOrder)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description private voidcombineUserExifIntoFinalExif(TiffOutputSet userExif, TiffOutputSet outputSet)private byte[][]getStrips(java.awt.image.BufferedImage src, int samplesPerPixel, int bitsPerSample, int rowsPerStrip)protected static intimageDataPaddingLength(int dataLength)protected TiffOutputSummaryvalidateDirectories(TiffOutputSet outputSet)abstract voidwrite(java.io.OutputStream os, TiffOutputSet outputSet)voidwriteImage(java.awt.image.BufferedImage src, java.io.OutputStream os, java.util.Map<java.lang.String,java.lang.Object> params)protected voidwriteImageFileHeader(BinaryOutputStream bos)protected voidwriteImageFileHeader(BinaryOutputStream bos, long offsetToFirstIFD)
-
-
-
Method Detail
-
imageDataPaddingLength
protected static int imageDataPaddingLength(int dataLength)
-
write
public abstract void write(java.io.OutputStream os, TiffOutputSet outputSet) throws java.io.IOException, ImageWriteException- Throws:
java.io.IOExceptionImageWriteException
-
validateDirectories
protected TiffOutputSummary validateDirectories(TiffOutputSet outputSet) throws ImageWriteException
- Throws:
ImageWriteException
-
writeImage
public void writeImage(java.awt.image.BufferedImage src, java.io.OutputStream os, java.util.Map<java.lang.String,java.lang.Object> params) throws ImageWriteException, java.io.IOException- Throws:
ImageWriteExceptionjava.io.IOException
-
combineUserExifIntoFinalExif
private void combineUserExifIntoFinalExif(TiffOutputSet userExif, TiffOutputSet outputSet) throws ImageWriteException
- Throws:
ImageWriteException
-
getStrips
private byte[][] getStrips(java.awt.image.BufferedImage src, int samplesPerPixel, int bitsPerSample, int rowsPerStrip)
-
writeImageFileHeader
protected void writeImageFileHeader(BinaryOutputStream bos) throws java.io.IOException
- Throws:
java.io.IOException
-
writeImageFileHeader
protected void writeImageFileHeader(BinaryOutputStream bos, long offsetToFirstIFD) throws java.io.IOException
- Throws:
java.io.IOException
-
-