public class FastCharArrayWriter extends Writer
| Constructor and Description |
|---|
FastCharArrayWriter()
Creates a new writer.
|
FastCharArrayWriter(int size)
Creates a new char array writer, with a buffer capacity of
the specified size, in bytes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closing a
FastCharArrayWriter has no effect. |
void |
flush()
Flushing a
FastCharArrayWriter has no effects. |
void |
reset() |
int |
size() |
char[] |
toCharArray() |
String |
toString() |
void |
write(char[] b,
int off,
int len) |
void |
write(int b)
Writes single byte.
|
void |
write(String s,
int off,
int len) |
void |
writeTo(Writer out) |
public FastCharArrayWriter()
public FastCharArrayWriter(int size)
size - the initial size.IllegalArgumentException - if size is negative.public void write(char[] b,
int off,
int len)
write in class WriterWriter.write(char[], int, int)public int size()
CharArrayWriter.size()public void close()
FastCharArrayWriter has no effect. The methods in
this class can be called after the stream has been closed without
generating an IOException.public void flush()
FastCharArrayWriter has no effects.public void reset()
CharArrayWriter.reset()public void writeTo(Writer out) throws IOException
IOExceptionCharArrayWriter.writeTo(java.io.Writer)public char[] toCharArray()
CharArrayWriter.toCharArray()public String toString()
toString in class ObjectCharArrayWriter.toString()Copyright © 2016 jetbrick. All rights reserved.