Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.io.StringWriter

Availability: JDK 1.1

public class StringWriter extends Writer {
   // Public Constructor
      public StringWriter();
   // Protected Constructor
      protected StringWriter(int initialSize);
   // Public Instance Methods
      public void close();  // Defines Writer.close()
      public void flush();  // Defines Writer.flush()
      public StringBuffer getBuffer();
      public String toString();  // Overrides Object.toString()
      public void write(int c);  // Overrides Writer.write()
      public void write(char[] cbuf, int off, int len);  // Defines Writer.write()
      public void write(String str);  // Overrides Writer.write()
      public void write(String str, int off, int len);  // Overrides Writer.write()
}

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.