|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
org.jboss.util.stream.NullOutputStream
public final class NullOutputStream
A null OutputStream. All values passed to
write(int) are discarded. Calls to flush() and
close() are ignored.
All methods are declared NOT to throw IOExceptions.
| Field Summary | |
|---|---|
static NullOutputStream |
STREAM
A default null output stream. |
| Constructor Summary | |
|---|---|
NullOutputStream()
|
|
| Method Summary | |
|---|---|
void |
close()
Non-operation. |
void |
flush()
Non-operation. |
void |
write(byte[] bytes)
Non-operation. |
void |
write(byte[] bytes,
int offset,
int length)
Non-operation. |
void |
write(int b)
Non-operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final NullOutputStream STREAM
| Constructor Detail |
|---|
public NullOutputStream()
| Method Detail |
|---|
public void write(int b)
write in class OutputStreampublic void flush()
flush in interface Flushableflush in class OutputStreampublic void close()
close in interface Closeableclose in class OutputStreampublic void write(byte[] bytes)
write in class OutputStream
public void write(byte[] bytes,
int offset,
int length)
write in class OutputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||