/**@class java.io.StringWriter
@extends java.io.Writer

 A character stream that collects its output in a string buffer, which can
 then be used to construct a string.
 <p>
 Closing a <tt>StringWriter</tt> has no effect. The methods in this class
 can be called after the stream has been closed without generating an
 <tt>IOException</tt>.

 @author      Mark Reinhold
 @since       JDK1.1
*/
var StringWriter = {

/**Write a single character.
*/
write : function(  ) {},

/**Write a portion of an array of characters.
@param {Object {char[]}} cbuf  Array of characters
@param {Number} off   Offset from which to start writing characters
@param {Number} len   Number of characters to write
*/
write : function(  ) {},

/**Write a string.
*/
write : function(  ) {},

/**Write a portion of a string.
@param {String} str  String to be written
@param {Number} off  Offset from which to start writing characters
@param {Number} len  Number of characters to write
*/
write : function(  ) {},

/**Appends the specified character sequence to this writer.

 <p> An invocation of this method of the form <tt>out.append(csq)</tt>
 behaves in exactly the same way as the invocation

 <pre>
     out.write(csq.toString()) </pre>

 <p> Depending on the specification of <tt>toString</tt> for the
 character sequence <tt>csq</tt>, the entire sequence may not be
 appended. For instance, invoking the <tt>toString</tt> method of a
 character buffer will return a subsequence whose content depends upon
 the buffer's position and limit.
@param {Object {CharSequence}} csq
         The character sequence to append.  If <tt>csq</tt> is
         <tt>null</tt>, then the four characters <tt>"null"</tt> are
         appended to this writer.
@return {Object {java.io.StringWriter}} This writer
@since 1.5
*/
append : function(  ) {},

/**Appends a subsequence of the specified character sequence to this writer.

 <p> An invocation of this method of the form <tt>out.append(csq, start,
 end)</tt> when <tt>csq</tt> is not <tt>null</tt>, behaves in
 exactly the same way as the invocation

 <pre>
     out.write(csq.subSequence(start, end).toString()) </pre>
@param {Object {CharSequence}} csq
         The character sequence from which a subsequence will be
         appended.  If <tt>csq</tt> is <tt>null</tt>, then characters
         will be appended as if <tt>csq</tt> contained the four
         characters <tt>"null"</tt>.
@param {Number} start
         The index of the first character in the subsequence
@param {Number} end
         The index of the character following the last character in the
         subsequence
@return {Object {java.io.StringWriter}} This writer
@throws IndexOutOfBoundsException
          If <tt>start</tt> or <tt>end</tt> are negative, <tt>start</tt>
          is greater than <tt>end</tt>, or <tt>end</tt> is greater than
          <tt>csq.length()</tt>
@since 1.5
*/
append : function(  ) {},

/**Appends the specified character to this writer.

 <p> An invocation of this method of the form <tt>out.append(c)</tt>
 behaves in exactly the same way as the invocation

 <pre>
     out.write(c) </pre>
@param {String} c
         The 16-bit character to append
@return {Object {java.io.StringWriter}} This writer
@since 1.5
*/
append : function(  ) {},

/**Return the buffer's current value as a string.
*/
toString : function(  ) {},

/**Return the string buffer itself.
@return {Object {java.lang.StringBuffer}} StringBuffer holding the current buffer value.
*/
getBuffer : function(  ) {},

/**Flush the stream.
*/
flush : function(  ) {},

/**Closing a <tt>StringWriter</tt> has no effect. The methods in this
 class can be called after the stream has been closed without generating
 an <tt>IOException</tt>.
*/
close : function(  ) {},


};