Save This Page
Home » sitemesh-2.3 » com.opensymphony.module » sitemesh » util » [javadoc | source]
com.opensymphony.module.sitemesh.util
public class: CharArrayWriter [javadoc | source]
java.lang.Object
   java.io.Writer
      com.opensymphony.module.sitemesh.util.CharArrayWriter

All Implemented Interfaces:
    Closeable, Flushable, Appendable

Unsynced version of the JDK's CharArrayWriter
Field Summary
protected  char[] buf    The buffer where data is stored. 
protected  int count    The number of chars in the buffer. 
Constructor:
 public CharArrayWriter() 
 public CharArrayWriter(int initialSize) 
Method from com.opensymphony.module.sitemesh.util.CharArrayWriter Summary:
close,   flush,   reset,   size,   toCharArray,   toString,   write,   write,   write,   writeTo
Methods from java.io.Writer:
append,   append,   append,   append,   append,   append,   close,   flush,   write,   write,   write,   write,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.opensymphony.module.sitemesh.util.CharArrayWriter Detail:
 public  void close() 
    Close the stream. This method does not release the buffer, since its contents might still be required.
 public  void flush() 
    Flush the stream.
 public  void reset() 
    Resets the buffer so that you can use it again without throwing away the already allocated buffer.
 public int size() 
    Returns the current size of the buffer.
 public char[] toCharArray() 
    Returns a copy of the input data.
 public String toString() 
    Converts input data to a string.
 public  void write(int c) 
    Writes a character to the buffer.
 public  void write(char[] c,
    int off,
    int len) 
    Writes characters to the buffer.
 public  void write(String str,
    int off,
    int len) 
    Write a portion of a string to the buffer.
 public  void writeTo(Writer out) throws IOException 
    Writes the contents of the buffer to another character stream.