|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.knime.core.data.util.NonClosableOutputStream
public class NonClosableOutputStream
Class that overrides the close method and flushes the stream instead of closing it.
Nested Class Summary | |
---|---|
static class |
NonClosableOutputStream.Zip
Special implementation that wraps ZipOutputStream objects
and calls ZipOutputStream.closeEntry() when the stream is closed. |
Constructor Summary | |
---|---|
NonClosableOutputStream(OutputStream out)
Inits object, references argument. |
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
(package private) OutputStream |
getUnderlyingStream()
Get reference to underlying stream. |
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NonClosableOutputStream(OutputStream out)
out
- The reference.Method Detail |
---|
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
final OutputStream getUnderlyingStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |