public class FastCharArrayWriter extends Writer
FastByteArrayOutputStream but for 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()
Reset.
|
int |
size()
Size.
|
char[] |
toCharArray()
To char array.
|
String |
toString()
To string.
|
void |
write(char[] b,
int off,
int len)
Write.
|
void |
write(int b)
Writes single byte.
|
void |
write(String s,
int off,
int len) |
void |
writeTo(Writer out)
Write to.
|
public FastCharArrayWriter()
public FastCharArrayWriter(int size)
size - the initial size.public void write(char[] b,
int off,
int len)
write in class Writerb - the boff - the offlen - the lenWriter.write(char[], int, int)public void write(int b)
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
out - the outIOException - Signals that an I/O exception has occurred.CharArrayWriter.writeTo(java.io.Writer)public char[] toCharArray()
CharArrayWriter.toCharArray()public String toString()
toString in class ObjectCharArrayWriter.toString()Copyright © 2016 utils4j. All Rights Reserved.