de.cgarbs.io
Class NullInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--de.cgarbs.io.NullInputStream

public class NullInputStream
extends java.io.InputStream

This class provides an InputStream that doesn't return any data.

This class is licensed under the GNU LESSER GENERAL PUBLIC LICENSE.

Version:
0.0.1
Author:
Christian Garbs

Constructor Summary
NullInputStream()
           
 
Method Summary
 int read()
          Always returns End Of Stream (-1).
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullInputStream

public NullInputStream()
Method Detail

read

public int read()
Always returns End Of Stream (-1).
Overrides:
read in class java.io.InputStream
Returns:
the next byte of data: is always -1 (End Of Stream)