net.myrrix.common.io
Class NullInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by net.myrrix.common.io.NullInputStream
All Implemented Interfaces:
Closeable

public final class NullInputStream
extends InputStream

InputStream which returns no bytes.

Author:
Sean Owen

Field Summary
static NullInputStream INSTANCE
           
 
Constructor Summary
NullInputStream()
           
 
Method Summary
 int available()
           
 void close()
           
 void mark(int i)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final NullInputStream INSTANCE
Constructor Detail

NullInputStream

public NullInputStream()
Method Detail

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.