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 Appendable
append
in class Writer
public Writer append(CharSequence charSequence)
append
in interface Appendable
append
in class Writer
public Writer append(CharSequence charSequence, int start, int end)
append
in interface Appendable
append
in class Writer
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
public void flush()
flush
in interface Flushable
flush
in class Writer
public void reset()
public int size()
public CharBuffer toCharBuffer()
public String toString()
toString
in class Object
public void write(char[] chars)
write
in class Writer
public void write(char[] chars, int offset, int length)
write
in class Writer
public void write(int c)
write
in class Writer
public void write(String string)
write
in class Writer
public void write(String string, int offset, int length)
write
in class Writer
public int writeTo(CharBuffer charBuffer)
public int writeTo(OutputStream outputStream, String charsetName) throws IOException
IOException
public int writeTo(Writer writer) throws IOException
IOException