public class RunLengthOutputStream extends FilterOutputStream
| Constructor and Description |
|---|
RunLengthOutputStream(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream and writes the stream trailer "0x80".
|
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 RunLengthOutputStream(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