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()
close in interface Closeableclose in interface AutoCloseableclose in class Writerpublic void flush()
flush in interface Flushableflush in class Writerpublic void reset()
public int size()
public CharBuffer toCharBuffer()
public String toString()
toString in class Objectpublic void write(char[] chars)
write in class Writerpublic void write(char[] chars,
int offset,
int length)
write in class Writerpublic void write(int c)
write in class Writerpublic void write(String string)
write in class Writerpublic void write(String string,
int offset,
int length)
write in class Writerpublic int writeTo(CharBuffer charBuffer)
public int writeTo(OutputStream outputStream,
String charsetName)
throws IOException
IOExceptionpublic int writeTo(Writer writer)
throws IOException
IOException