|
|||||||||
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.StringWriter
Fields inherited from class com.caucho.vfs.StreamImpl |
path |
Constructor Summary | |
StringWriter()
|
|
StringWriter(CharBuffer cb)
|
Method Summary | |
boolean |
canWrite()
Returns true since StringWriter is for writing. |
java.lang.String |
getString()
|
WriteStream |
openWrite()
Opens a write stream using this StringWriter as the resulting string |
void |
write(byte[] buf,
int offset,
int length)
Writes a utf-8 encoded buffer to the underlying string. |
Methods inherited from class com.caucho.vfs.StreamImpl |
canRead, clearWrite, close, flush, getAttribute, getAttributeNames, getAvailable, getFlushOnNewline, getNewline, getPath, getReadPosition, read, removeAttribute, setAttribute, setPath, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StringWriter()
public StringWriter(CharBuffer cb)
Method Detail |
public WriteStream openWrite()
public java.lang.String getString()
public boolean canWrite()
canWrite
in class StreamImpl
public void write(byte[] buf, int offset, int length) throws java.io.IOException
write
in class StreamImpl
buf
- byte buffer containing the bytesoffset
- offset where to start writinglength
- number of bytes to write
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |