|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.caucho.vfs.OutputStreamWithBuffer
com.caucho.vfs.WriteStream
com.caucho.vfs.NullWriteStream
public class NullWriteStream
A WriteStream that writes to nothing.
| Constructor Summary | |
|---|---|
NullWriteStream()
|
|
| Method Summary | |
|---|---|
boolean |
canWrite()
Returns true if the buffer allows writes. |
void |
flush()
Flushes the buffer to the source. |
void |
write(byte[] buf)
Writes a byte array. |
void |
write(byte[] buf,
int offset,
int length)
Writes a byte array |
void |
write(int ch)
Writes a byte. |
| Methods inherited from class com.caucho.vfs.WriteStream |
|---|
clearPosition, clearWrite, close, flushBuffer, flushToDisk, free, getAttribute, getAttributeNames, getBuffer, getBufferOffset, getBufferSize, getDisableClose, getEncoding, getJavaEncoding, getNewlineString, getPath, getPosition, getPrintWriter, getRemaining, getSource, getUserPath, init, isClosed, lock, log, log, nextBuffer, print, print, print, print, print, print, print, print, print, print, print, print, printLatin1, printLatin1, printLatin1NoLf, println, println, println, println, println, println, println, println, println, println, pushFilter, removeAttribute, seekEnd, seekStart, setAttribute, setBufferOffset, setDisableClose, setDisableCloseSource, setEncoding, setFlushOnNewline, setImplicitFlush, setLocale, setNewlineString, setPath, setPosition, setReuseBuffer, setSysNewline, setSystemNewline, toString, unlock, writeFile, writeStream, writeStream, writeStream, writeStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NullWriteStream()
| Method Detail |
|---|
public boolean canWrite()
WriteStreamLogStreams, used for debugging, use this feature to
test if they should write with very little overhead.
if (dbg.canWrite())
dbg.log("some debug value " + expensiveDebugCalculation(foo));
canWrite in class WriteStream
public void write(int ch)
throws java.io.IOException
write in interface ByteAppendablewrite in class WriteStreamjava.io.IOException
public void write(byte[] buf,
int offset,
int length)
throws java.io.IOException
write in interface ByteAppendablewrite in class WriteStreamjava.io.IOException
public void write(byte[] buf)
throws java.io.IOException
write in class WriteStreamjava.io.IOException
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class WriteStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||