public class CharArrayWriter extends Writer
Modifier and Type | Field and Description |
---|---|
protected char[] |
buf |
protected int |
count |
Constructor and Description |
---|
CharArrayWriter() |
CharArrayWriter(int size) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
reset() |
int |
size() |
char[] |
toCharArray() |
String |
toString()
Default String representation: overriden by many classes.
|
void |
write(char[] buf,
int offset,
int count)
Note: an implementation of this method should use the 'lock' object
to synchronize with other methods ...
|
void |
write(int oneChar) |
void |
write(String str,
int offset,
int count) |
void |
writeTo(Writer out) |
public CharArrayWriter()
public CharArrayWriter(int size)
public void reset()
public int size()
public char[] toCharArray()
public String toString()
Object
public void write(char[] buf, int offset, int count)
Writer
public void writeTo(Writer out) throws IOException
IOException