Top Description Fields Constructors Methods
org.hsqldb.lib

public Class CharArrayWriter

extends Object
Class Inheritance
Imports
java.io.EOFException, .IOException, .Reader

A writer for char strings.
Author
Fred Toussi (fredt@users dot sourceforge.net)
Since
1.9.0
Version
2.3.4

Field Summary

Modifier and TypeField and Description
protected char[]
protected int

Constructor Summary

AccessConstructor and Description
public
CharArrayWriter(int size)

public
CharArrayWriter(char[] buffer)

public
CharArrayWriter(Reader reader, int length)

public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
ensureRoom(int size)

public char[]
public void
public void
reset(char[] buffer)

public void
setSize(int newPos)

public int
size()

public char[]
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public void
write(int c)

public int
write(Reader reader, int length)

public void
write(String str, int off, int len)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

bufferback to summary
protected char[] buffer
countback to summary
protected int count

Constructor Detail

CharArrayWriterback to summary
public CharArrayWriter(int size)
CharArrayWriterback to summary
public CharArrayWriter(char[] buffer)
CharArrayWriterback to summary
public CharArrayWriter(Reader reader, int length) throws IOException
CharArrayWriterback to summary
public CharArrayWriter(Reader reader) throws IOException

Method Detail

ensureRoomback to summary
pack-priv void ensureRoom(int size)
getBufferback to summary
public char[] getBuffer()
resetback to summary
public void reset()
resetback to summary
public void reset(char[] buffer)
setSizeback to summary
public void setSize(int newPos)
sizeback to summary
public int size()
toCharArrayback to summary
public char[] toCharArray()
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

writeback to summary
public void write(int c)
writeback to summary
public int write(Reader reader, int length) throws IOException
writeback to summary
public void write(String str, int off, int len)