java.io.Closeable
, java.io.Flushable
, java.lang.AutoCloseable
, Finalizable
public class RunLengthEncodeOutputStream extends java.io.FilterOutputStream implements Finalizable
Constructor | Description |
---|---|
RunLengthEncodeOutputStream(java.io.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) |
public RunLengthEncodeOutputStream(java.io.OutputStream out)
FilterOutputStream
public void write(byte b) throws java.io.IOException
java.io.IOException
FilterOutputStream
public void write(byte[] b) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
FilterOutputStream
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.FilterOutputStream
java.io.IOException
FilterOutputStream
public void finalizeStream() throws java.io.IOException
Finalizable
finalizeStream
in interface Finalizable
java.io.IOException
- In case of an IO problemFinalizable
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
close
in interface java.io.Closeable
close
in class java.io.FilterOutputStream
java.io.IOException
FilterOutputStream
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.