Class TIFFOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- com.adobe.internal.pdftoolkit.core.filter.TIFFOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
public class TIFFOutputStream extends FilterOutputStream
TIFFOutputStream Performs TIFF image filtering of an output stream
-
-
Constructor Summary
Constructors Constructor Description TIFFOutputStream(OutputStream out)
TIFFOutputStream(OutputStream out, FilterParams p)
Creates an output stream filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getTotalOut()
Counts the number of bytes written by this filter.void
write(byte[] b)
Writes an array of bytes.void
write(byte[] b, int off, int len)
Writes a subarray of bytes.void
write(int b)
Writes a byte.-
Methods inherited from class java.io.FilterOutputStream
close, flush
-
Methods inherited from class java.io.OutputStream
nullOutputStream
-
-
-
-
Constructor Detail
-
TIFFOutputStream
public TIFFOutputStream(OutputStream out, FilterParams p)
Creates an output stream filter.- Parameters:
out
- the output stream
-
TIFFOutputStream
public TIFFOutputStream(OutputStream out)
-
-
Method Detail
-
write
public void write(int b) throws IOException
Writes a byte. Will block until the byte is actually written.- Overrides:
write
in classFilterOutputStream
- Parameters:
b
- the byte- Throws:
IOException
- If an I/O error has occurred.
-
write
public void write(byte[] b, int off, int len) throws IOException
Writes a subarray of bytes.- Overrides:
write
in classFilterOutputStream
- Parameters:
b
- the data to be writtenoff
- the start offset in the datalen
- the number of bytes that are written- Throws:
IOException
- If an I/O error has occurred.
-
write
public void write(byte[] b) throws IOException
Writes an array of bytes. Will block until the bytes are actually written.- Overrides:
write
in classFilterOutputStream
- Parameters:
b
- the data to be written- Throws:
IOException
- If an I/O error has occurred.
-
getTotalOut
public long getTotalOut()
Counts the number of bytes written by this filter.- Returns:
- actual number of bytes written
-
-