com.caucho.vfs
Class StringWriter

java.lang.Object
  |
  +--com.caucho.vfs.StreamImpl
        |
        +--com.caucho.vfs.StringWriter

public class StringWriter
extends StreamImpl


Fields inherited from class com.caucho.vfs.StreamImpl
path
 
Constructor Summary
StringWriter()
           
StringWriter(CharBuffer cb)
           
 
Method Summary
 boolean canWrite()
           
 java.lang.String getString()
           
 WriteStream openWrite()
           
 void write(byte[] buf, int offset, int length)
           
 
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

StringWriter

public StringWriter()

StringWriter

public StringWriter(CharBuffer cb)
Method Detail

openWrite

public WriteStream openWrite()

getString

public java.lang.String getString()

canWrite

public boolean canWrite()
Overrides:
canWrite in class StreamImpl

write

public void write(byte[] buf,
                  int offset,
                  int length)
           throws java.io.IOException
Overrides:
write in class StreamImpl