|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
com.unboundid.util.NullOutputStream
@NotMutable @ThreadSafety(level=COMPLETELY_THREADSAFE) public final class NullOutputStream
This class provides an implementation of a java.io.OutputStream in
which any data written to it is simply discarded.
| Constructor Summary | |
|---|---|
NullOutputStream()
Creates a new null output stream instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this output stream. |
void |
flush()
Flushes the contents of this output stream. |
static NullOutputStream |
getInstance()
Retrieves an instance of this null output stream. |
static java.io.PrintStream |
getPrintStream()
Retrieves a print stream based on this null output stream. |
void |
write(byte[] b)
Writes the contents of the provided byte array over this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes the contents of the provided byte array over this output stream. |
void |
write(int b)
Writes the provided byte over this input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullOutputStream()
| Method Detail |
|---|
public static NullOutputStream getInstance()
public static java.io.PrintStream getPrintStream()
public void close()
close in interface java.io.Closeableclose in class java.io.OutputStreampublic void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreampublic void write(byte[] b)
write in class java.io.OutputStreamb - The byte array containing the data to be written.
public void write(byte[] b,
int off,
int len)
write in class java.io.OutputStreamb - The byte array containing the data to be written.off - The position in the array at which to start writing data.len - The number of bytes to be written.public void write(int b)
write in class java.io.OutputStreamb - The byte to be written.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||