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 void
combineUserExifIntoFinalExif
(TiffOutputSet userExif, TiffOutputSet outputSet) private byte[][]
getStrips
(BufferedImage src, int samplesPerPixel, int bitsPerSample, int rowsPerStrip) protected static int
imageDataPaddingLength
(int dataLength) protected TiffOutputSummary
validateDirectories
(TiffOutputSet outputSet) abstract void
write
(OutputStream os, TiffOutputSet outputSet) void
writeImage
(BufferedImage src, OutputStream os, Map<String, Object> params) protected void
protected void
writeImageFileHeader
(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:
IOException
ImageWriteException
-
validateDirectories
- Throws:
ImageWriteException
-
writeImage
public void writeImage(BufferedImage src, OutputStream os, Map<String, Object> params) throws ImageWriteException, IOException- Throws:
ImageWriteException
IOException
-
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
-