All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Acme.NullInputStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----Acme.NullInputStream

public class NullInputStream
extends InputStream
An InputStream that is always empty.

Simple subclass of InputStream, implementing a stream that always returns end-of-file.

The API is identical to java.io.InputStream.

Fetch the software.
Fetch the entire Acme package.


Constructor Index

 o NullInputStream()

Method Index

 o available()
Returns the number of bytes that can be read without blocking.
 o read()

Constructors

 o NullInputStream
 public NullInputStream()

Methods

 o read
 public int read() throws IOException
Returns:
Always returns -1 indicating EOF.
Overrides:
read in class InputStream
 o available
 public int available() throws IOException
Returns the number of bytes that can be read without blocking.

Returns:
the number of available bytes.
Overrides:
available in class InputStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index

ACME Java  ACME Labs