|
||||||||||
| 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 InputStreamIOException
public void close()
throws IOException
close in interface Closeableclose in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStream
public int read()
throws IOException
read in class InputStreamIOException
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOException
public int read(byte[] b)
throws IOException
read in class InputStreamIOException
public void reset()
throws IOException
reset in class InputStreamIOException
public long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic String toString()
toString in class Objectpublic final InputStream getUnderlyingStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||