public class EmptyInputStream extends InputStream
/dev/null implementation - always open| Modifier and Type | Field and Description |
|---|---|
static EmptyInputStream |
DEV_NULL |
| Constructor and Description |
|---|
EmptyInputStream() |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
close, markSupported, readpublic static final EmptyInputStream DEV_NULL
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.