Java java.io StringWriter fields, constructors, methods, implement or subclass

Example usage for Java java.io StringWriter fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io StringWriter.

The text is from its open source code.

Subclass

java.io.StringWriter has subclasses.
Click this link to see all its subclasses.

Constructor

StringWriter()
Create a new string writer using the default initial string-buffer size.
StringWriter(int initialSize)
Create a new string writer using the specified initial string-buffer size.

Method

StringWriterappend(CharSequence csq)
Appends the specified character sequence to this writer.
StringWriterappend(char c)
Appends the specified character to this writer.
StringWriterappend(CharSequence csq, int start, int end)
Appends a subsequence of the specified character sequence to this writer.
voidclose()
Closing a StringWriter has no effect.
voidflush()
Flush the stream.
StringBuffergetBuffer()
Return the string buffer itself.
ClassgetClass()
Returns the runtime class of this Object .
StringtoString()
Return the buffer's current value as a string.
voidwrite(int c)
Write a single character.
voidwrite(String str)
Write a string.
voidwrite(char cbuf[], int off, int len)
Write a portion of an array of characters.
voidwrite(String str, int off, int len)
Write a portion of a string.