|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.knime.core.data.util.NonClosableInputStream
public class NonClosableInputStream
InputStream that delegates to an underlying InputStream
but ignores
calls of close()
.
Nested Class Summary | |
---|---|
static class |
NonClosableInputStream.Zip
Special implementation that wraps ZipInputStream objects
and calls ZipInputStream.closeEntry() when the stream is closed. |
Constructor Summary | |
---|---|
NonClosableInputStream(InputStream inStream)
Creates new input stream. |
Method Summary | |
---|---|
int |
available()
|
void |
close()
Does NOT delegate to wrapped input stream, ignores call. |
InputStream |
getUnderlyingStream()
Get reference to underlying stream. |
void |
mark(int readlimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long n)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NonClosableInputStream(InputStream inStream)
inStream
- To wrap.
NullPointerException
- If the argument is null.Method Detail |
---|
public int available() throws IOException
available
in class InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public int read(byte[] b) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public String toString()
toString
in class Object
public final InputStream getUnderlyingStream()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |