Class TiffImageWriterBase
java.lang.Object
org.apache.commons.imaging.formats.tiff.write.TiffImageWriterBase
- Direct Known Subclasses:
TiffImageWriterLossless,TiffImageWriterLossy
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidcombineUserExifIntoFinalExif(TiffOutputSet userExif, TiffOutputSet outputSet) private byte[][]getStrips(BufferedImage src, int samplesPerPixel, int bitsPerSample, int rowsPerStrip) protected static intimageDataPaddingLength(int dataLength) protected TiffOutputSummaryvalidateDirectories(TiffOutputSet outputSet) abstract voidwrite(OutputStream os, TiffOutputSet outputSet) voidwriteImage(BufferedImage src, OutputStream os, Map<String, Object> params) protected voidprotected voidwriteImageFileHeader(BinaryOutputStream bos, long offsetToFirstIFD)
-
Field Details
-
byteOrder
-
-
Constructor Details
-
TiffImageWriterBase
public TiffImageWriterBase() -
TiffImageWriterBase
-
-
Method Details
-
imageDataPaddingLength
protected static int imageDataPaddingLength(int dataLength) -
write
public abstract void write(OutputStream os, TiffOutputSet outputSet) throws IOException, ImageWriteException - Throws:
IOExceptionImageWriteException
-
validateDirectories
- Throws:
ImageWriteException
-
writeImage
public void writeImage(BufferedImage src, OutputStream os, Map<String, Object> params) throws ImageWriteException, IOException- Throws:
ImageWriteExceptionIOException
-
combineUserExifIntoFinalExif
private void combineUserExifIntoFinalExif(TiffOutputSet userExif, TiffOutputSet outputSet) throws ImageWriteException - Throws:
ImageWriteException
-
getStrips
private byte[][] getStrips(BufferedImage src, int samplesPerPixel, int bitsPerSample, int rowsPerStrip) -
writeImageFileHeader
- Throws:
IOException
-
writeImageFileHeader
protected void writeImageFileHeader(BinaryOutputStream bos, long offsetToFirstIFD) throws IOException - Throws:
IOException
-