|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.vfs.StreamImpl | +--com.caucho.vfs.LogStream
The primary debugging stream in Resin.
Fields inherited from class com.caucho.vfs.StreamImpl |
nullPath, path |
Method Summary | |
boolean |
canWrite()
Returns true if this is a writable stream. |
void |
close()
Closes the stream. |
void |
destroy()
|
void |
flush()
Flushes the write output. |
void |
handleChange(java.lang.Object object)
When the resin.conf changes, update the logging. |
static WriteStream |
open(java.lang.String logId)
Create a new stream based on the logId. |
static WriteStream |
openQuiet(java.lang.String logId)
Create a new stream based on the logId. |
void |
setDoLogId(boolean logId)
|
void |
write(byte[] buf,
int offset,
int length,
boolean isEnd)
Writes the buffered chunk to the underlying stream. |
Methods inherited from class com.caucho.vfs.StreamImpl |
canRead, clearWrite, getAttribute, getAttributeNames, getAvailable, getFlushOnNewline, getNewline, getPath, getReadPosition, hasSkip, read, removeAttribute, setAttribute, setPath, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setDoLogId(boolean logId)
public void handleChange(java.lang.Object object)
handleChange
in interface ChangeListener
public static WriteStream open(java.lang.String logId)
logId
- the name of the debug stream to openpublic static WriteStream openQuiet(java.lang.String logId)
logId
- the name of the debug stream to openpublic final boolean canWrite()
StreamImpl
canWrite
in class StreamImpl
public void write(byte[] buf, int offset, int length, boolean isEnd) throws java.io.IOException
write
in class StreamImpl
buf
- byte buffer to writeoffset
- offset into the buffer to start writinglength
- length of the buffer to writeisEnd
- true when the stream is closing.public void flush()
StreamImpl
flush
in class StreamImpl
public void close()
StreamImpl
close
in class StreamImpl
public void destroy()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |