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

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

Introduction

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

The text is from its open source code.

Constructor

CharArrayWriter()
Creates a new CharArrayWriter.
CharArrayWriter(int initialSize)
Creates a new CharArrayWriter with the specified initial size.

Method

CharArrayWriterappend(CharSequence csq)
Appends the specified character sequence to this writer.
CharArrayWriterappend(char c)
Appends the specified character to this writer.
CharArrayWriterappend(CharSequence csq, int start, int end)
Appends a subsequence of the specified character sequence to this writer.
voidclose()
Close the stream.
voidflush()
Flush the stream.
voidreset()
Resets the buffer so that you can use it again without throwing away the already allocated buffer.
intsize()
Returns the current size of the buffer.
char[]toCharArray()
Returns a copy of the input data.
StringtoString()
Converts input data to a string.
voidwrite(int c)
Writes a character to the buffer.
voidwrite(char c[], int off, int len)
Writes characters to the buffer.
voidwrite(String str, int off, int len)
Write a portion of a string to the buffer.
voidwriteTo(Writer out)
Writes the contents of the buffer to another character stream.