public class DetachableInputStream extends FilterInputStream
in| Constructor and Description |
|---|
DetachableInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
detach()
Consume the input stream and close it.
|
long |
length() |
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) |
public DetachableInputStream(InputStream in)
public long length()
throws IOException
IOExceptionpublic void detach()
throws IOException
IOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic void mark(int readlimit)
mark in class FilterInputStreampublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class FilterInputStreamIOExceptionpublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionCopyright © The Apache Software Foundation. All Rights Reserved.