public class FlateOutputStream extends FilterOutputStream
Constructor and Description |
---|
FlateOutputStream(OutputStream out) |
FlateOutputStream(OutputStream out,
FilterParams p)
Creates an output stream filter.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream and writes the stream trailer.
|
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.
|
flush
public FlateOutputStream(OutputStream out, FilterParams p)
out
- the output streampublic FlateOutputStream(OutputStream out)
public void write(int b) throws IOException
write
in class FilterOutputStream
b
- the byteIOException
- If an I/O error has occurred.public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
b
- the data to be writtenoff
- the start offset in the datalen
- the number of bytes that are writtenIOException
- If an I/O error has occurred.public void write(byte[] b) throws IOException
write
in class FilterOutputStream
b
- the data to be writtenIOException
- If an I/O error has occurred.public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterOutputStream
IOException
- If an I/O error has occurred.public long getTotalOut()
Copyright © 2010 - 2020 Adobe. All Rights Reserved