public class CharArrayWriter extends Writer
CharArrayWriter| Modifier and Type | Field and Description |
|---|---|
protected char[] |
buf |
protected int |
count |
| Constructor and Description |
|---|
CharArrayWriter() |
CharArrayWriter(int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
CharArrayWriter |
append(char c) |
CharArrayWriter |
append(CharSequence csq) |
CharArrayWriter |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
void |
reset() |
int |
size() |
char[] |
toCharArray() |
String |
toString() |
void |
write(char[] c,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
void |
writeTo(Writer out) |
public CharArrayWriter()
public CharArrayWriter(int initialSize)
public void writeTo(Writer out) throws IOException
IOExceptionpublic CharArrayWriter append(CharSequence csq)
append in interface Appendableappend in class Writerpublic CharArrayWriter append(CharSequence csq, int start, int end)
append in interface Appendableappend in class Writerpublic CharArrayWriter append(char c)
append in interface Appendableappend in class Writerpublic void reset()
public char[] toCharArray()
public int size()
public void flush()
Copyright © 2017. All rights reserved.