com.apple.mrj.console
Class NullOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--com.apple.mrj.console.NullOutputStream
Deprecated. As of MacOSX 10.2
- public class NullOutputStream
- extends OutputStream
The NullOutputStream
class is used to send all written
bytes into the void. It is a convenient stream to which to connect
standard output and error, when such information is not desired to be
displayed or sent to a file.
- Since:
- MRJ-Simba
- See Also:
System.out
,
System.err
,
OutputStream
Method Summary |
void |
write(byte[] b,
int off,
int len)
Deprecated. Absorbs the input, without sending it anywhere. |
void |
write(int b)
Deprecated. Absorbs the input, without sending it anywhere. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NullOutputStream
public NullOutputStream()
- Deprecated.
write
public void write(int b)
throws IOException
- Deprecated.
- Absorbs the input, without sending it anywhere.
- Overrides:
write
in class OutputStream
- Parameters:
b
- the byte to be "written" to the null stream.- Throws:
IOException
- in the (highly unlikely) event that
an I/O error occurs...- See Also:
java.io.OutputStream#write(byte)
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Deprecated.
- Absorbs the input, without sending it anywhere.
- Overrides:
write
in class OutputStream
- Parameters:
b
- the buffer to be "written" to the null stream.off
- the offset in the buffer.len
- the length of the buffer.- Throws:
IOException
- in the (highly unlikely) event that
an I/O error occurs...- See Also:
OutputStream.write(byte[], int, int)
Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. 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.