|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.io.InputStream
|
+--com.apple.mrj.console.NullInputStream
The NullInputStream class is used as a convenient and
neverending source of end-of-file returns. It is convenient as a
source of standard input, when no interation is desired.
System.in,
InputStream| Constructor Summary | |
NullInputStream()
Deprecated. |
|
| Method Summary | |
int |
read()
Deprecated. Supplies an end-of-stream return code immediately, without supplying any data. |
int |
read(byte[] b,
int off,
int len)
Deprecated. Supplies an end-of-stream return code immediately, without supplying any data. |
long |
skip(long n)
Deprecated. Supplies an end-of-stream return code immediately, since there is no data to skip. |
| Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, read, reset |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NullInputStream()
| Method Detail |
public int read()
throws IOException
read in class InputStreamIOException - in the (highly unlikely) event that
an I/O error occurs...InputStream.read()
public int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamb - the buffer that would be filled with data,
had we any to provide.off - the offset into the start of the buffer.len - the length of the buffer.IOException - in the (highly unlikely) event that
an I/O error occurs...InputStream.read(byte[], int, int)
public long skip(long n)
throws IOException
skip in class InputStreamn - the number of bytes to skip (ignored).IOException - in the (highly unlikely) event that
an I/O error occurs...InputStream.skip(long)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.