public class UnsyncCharArrayWriter extends Writer
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
buffer |
protected int |
index |
| Constructor and Description |
|---|
UnsyncCharArrayWriter() |
UnsyncCharArrayWriter(int initialSize) |
| Modifier and Type | Method and Description |
|---|---|
Writer |
append(char c) |
Writer |
append(CharSequence charSequence) |
Writer |
append(CharSequence charSequence,
int start,
int end) |
void |
close() |
void |
flush() |
void |
reset() |
int |
size() |
CharBuffer |
toCharBuffer() |
String |
toString() |
void |
write(char[] chars) |
void |
write(char[] chars,
int offset,
int length) |
void |
write(int c) |
void |
write(String string) |
void |
write(String string,
int offset,
int length) |
int |
writeTo(CharBuffer charBuffer) |
int |
writeTo(OutputStream outputStream,
String charsetName) |
int |
writeTo(Writer writer) |
public UnsyncCharArrayWriter()
public UnsyncCharArrayWriter(int initialSize)
public Writer append(char c)
append in interface Appendableappend in class Writerpublic Writer append(CharSequence charSequence)
append in interface Appendableappend in class Writerpublic Writer append(CharSequence charSequence, int start, int end)
append in interface Appendableappend in class Writerpublic void close()
public void flush()
public void reset()
public int size()
public CharBuffer toCharBuffer()
public int writeTo(CharBuffer charBuffer)
public int writeTo(OutputStream outputStream, String charsetName) throws IOException
IOExceptionpublic int writeTo(Writer writer) throws IOException
IOException