public class LZWOutputStream extends FilterOutputStream
| Constructor and Description |
|---|
LZWOutputStream(OutputStream out) |
LZWOutputStream(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.
|
flushpublic LZWOutputStream(OutputStream out, FilterParams p)
out - the output streampublic LZWOutputStream(OutputStream out)
public void write(int b)
throws IOException
write in class FilterOutputStreamb - the byteIOException - If an I/O error has occurred.public void write(byte[] b,
int off,
int len)
throws IOException
write in class FilterOutputStreamb - 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 FilterOutputStreamb - the data to be writtenIOException - If an I/O error has occurred.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterOutputStreamIOException - If an I/O error has occurred.public long getTotalOut()
Copyright © 2010 - 2020 Adobe. All Rights Reserved