public class EmptyInputStream extends InputStream
/dev/null
implementation - always openModifier 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, read
public static final EmptyInputStream DEV_NULL
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
public int available() throws IOException
available
in class InputStream
IOException
public void mark(int readlimit)
mark
in class InputStream
public void reset() throws IOException
reset
in class InputStream
IOException
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.