|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
edu.rice.cs.plt.io.DirectOutputStream
edu.rice.cs.plt.io.VoidOutputStream
public class VoidOutputStream
A stream that discards all data written to it.
| Field Summary | |
|---|---|
static VoidOutputStream |
INSTANCE
|
| Fields inherited from class edu.rice.cs.plt.io.DirectOutputStream |
|---|
DEFAULT_BUFFER_SIZE |
| Constructor Summary | |
|---|---|
protected |
VoidOutputStream()
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
|
void |
write(byte[] bbuf)
Delegate to the more general DirectOutputStream.write(byte[], int, int) method |
void |
write(byte[] bbuf,
int offset,
int len)
Subclasses are, at a minimum, required to implement this method. |
void |
write(int b)
Delegate to the more general DirectOutputStream.write(byte[], int, int) method |
| Methods inherited from class edu.rice.cs.plt.io.DirectOutputStream |
|---|
write, write, write, writeAll, writeAll, writeAll |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final VoidOutputStream INSTANCE
| Constructor Detail |
|---|
protected VoidOutputStream()
| Method Detail |
|---|
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[] bbuf)
DirectOutputStreamDirectOutputStream.write(byte[], int, int) method
write in class DirectOutputStream
public void write(byte[] bbuf,
int offset,
int len)
DirectOutputStream
write in class DirectOutputStreampublic void write(int b)
DirectOutputStreamDirectOutputStream.write(byte[], int, int) method
write in class DirectOutputStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||