public class CloseableEmptyInputStream extends EmptyInputStream implements Channel
/dev/null
stream that can be closed - in which case it will throw
IOException
s 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) |
mark
markSupported, read
public int available() throws IOException
available
in class EmptyInputStream
IOException
public int read() throws IOException
read
in class EmptyInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class EmptyInputStream
IOException
public long skip(long n) throws IOException
skip
in class EmptyInputStream
IOException
public void reset() throws IOException
reset
in class EmptyInputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
close
in class InputStream
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.