Closeable
, Flushable
, AutoCloseable
, Finalizable
public class RunLengthEncodeOutputStream extends FilterOutputStream implements Finalizable
out
Constructor | Description |
---|---|
RunLengthEncodeOutputStream(OutputStream out) |
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
|
void |
finalizeStream() |
This method can be called instead of close() on a subclass of
FilteredOutputStream when a final marker has to be written to the target
stream, but close() cannot be called.
|
void |
write(byte b) |
|
void |
write(byte[] b) |
|
void |
write(byte[] b,
int off,
int len) |
flush, write
public RunLengthEncodeOutputStream(OutputStream out)
FilterOutputStream
public void write(byte b) throws IOException
IOException
FilterOutputStream
public void write(byte[] b) throws IOException
write
in class FilterOutputStream
IOException
FilterOutputStream
public void write(byte[] b, int off, int len) throws IOException
write
in class FilterOutputStream
IOException
FilterOutputStream
public void finalizeStream() throws IOException
Finalizable
finalizeStream
in interface Finalizable
IOException
- In case of an IO problemFinalizable
public void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
close
in class FilterOutputStream
IOException
FilterOutputStream
Copyright © 2018 Apache Software Foundation. All rights reserved.