|
||||||||||
| 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 Closeableclose in class OutputStreamIOException
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOException
public void write(byte[] b)
throws IOException
write in class OutputStreamIOException
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionfinal OutputStream getUnderlyingStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||