public class CloseableEmptyInputStream extends EmptyInputStream implements Channel
/dev/null stream that can be closed - in which case it will throw
IOExceptions if invoked after being closedDEV_NULL| Constructor and Description |
|---|
CloseableEmptyInputStream() |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
isOpen() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
markmarkSupported, readpublic int available()
throws IOException
available in class EmptyInputStreamIOExceptionpublic int read()
throws IOException
read in class EmptyInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class EmptyInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class EmptyInputStreamIOExceptionpublic void reset()
throws IOException
reset in class EmptyInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class InputStreamIOExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.