|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.opends.server.types.NullOutputStream
@PublicAPI(stability=UNCOMMITTED, mayInstantiate=true, mayExtend=false, mayInvoke=true) public final class NullOutputStream
This class defines a custom output stream that simply discards any data written to it.
Method Summary | |
---|---|
void |
close()
Closes the output stream. |
void |
flush()
Flushes the output stream. |
static NullOutputStream |
instance()
Retrieves an instance of this null output stream. |
static java.io.PrintStream |
printStream()
Retrieves a print stream using this null output stream. |
void |
write(byte[] b)
Writes the provided data to this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes the provided data to this output stream. |
void |
write(int b)
Writes the provided byte to this output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static NullOutputStream instance()
public static java.io.PrintStream printStream()
public void close()
close
in interface java.io.Closeable
close
in class java.io.OutputStream
public void flush()
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
public void write(byte[] b)
write
in class java.io.OutputStream
b
- The byte array containing the data to be written.public void write(byte[] b, int off, int len)
write
in class java.io.OutputStream
b
- The byte array containing the data to be written.off
- The offset at which the real data begins.len
- The number of bytes to be written.public void write(int b)
write
in class java.io.OutputStream
b
- The byte to be written.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |