SK.gnome.dwarf.utils.io
Class NullOutputStream
java.lang.Object
java.io.OutputStream
SK.gnome.dwarf.utils.io.NullOutputStream
- public class NullOutputStream
- extends java.io.OutputStream
Provides output stream discarding all data.
Field Summary |
static java.io.OutputStream |
INSTANCE
The object instance. |
Method Summary |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream.
|
void |
write(int b)
Writes the specified byte to this output stream.
|
Methods inherited from class java.io.OutputStream |
close, flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final java.io.OutputStream INSTANCE
- The object instance.
NullOutputStream
public NullOutputStream()
write
public void write(int b)
throws java.io.IOException
- Writes the specified byte to this output stream.
This method does nothing.
- Throws:
java.io.IOException
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Writes len bytes from the specified byte array starting at offset off to this output stream.
This method does nothing.
- Throws:
java.io.IOException
Copyright (c) 1999-2005, Gnome Ltd. All rights reserved.