net.myrrix.common.io
Class NullInputStream
java.lang.Object
java.io.InputStream
net.myrrix.common.io.NullInputStream
- All Implemented Interfaces:
- Closeable
public final class NullInputStream
- extends InputStream
InputStream which returns no bytes.
- Author:
- Sean Owen
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final NullInputStream INSTANCE
NullInputStream
public NullInputStream()
read
public int read()
- Specified by:
read in class InputStream
read
public int read(byte[] b)
- Overrides:
read in class InputStream
read
public int read(byte[] b,
int off,
int len)
- Overrides:
read in class InputStream
skip
public long skip(long n)
- Overrides:
skip in class InputStream
available
public int available()
- Overrides:
available in class InputStream
close
public void close()
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
mark
public void mark(int i)
- Overrides:
mark in class InputStream
reset
public void reset()
- Overrides:
reset in class InputStream
markSupported
public boolean markSupported()
- Overrides:
markSupported in class InputStream
Copyright © 2012. All Rights Reserved.