public class FastCharArrayWriter
extends java.io.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() |
int |
size() |
char[] |
toCharArray() |
java.lang.String |
toString() |
void |
write(char[] b,
int off,
int len) |
void |
write(int b)
Writes single byte.
|
void |
write(java.lang.String s,
int off,
int len) |
void |
writeTo(java.io.Writer out) |
public FastCharArrayWriter()
public FastCharArrayWriter(int size)
Writer, with a buffer capacity of
the specified size, in bytes.size - the initial size.java.lang.IllegalArgumentException - if size is negative.public void write(char[] b,
int off,
int len)
write in class java.io.WriterWriter.write(char[], int, int)public void write(int b)
write in class java.io.Writerpublic void write(java.lang.String s,
int off,
int len)
write in class java.io.Writerpublic 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.close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Writerpublic void flush()
FastCharArrayWriter has no effects.flush in interface java.io.Flushableflush in class java.io.Writerpublic void reset()
CharArrayWriter.reset()public void writeTo(java.io.Writer out)
throws java.io.IOException
java.io.IOExceptionCharArrayWriter.writeTo(Writer)public char[] toCharArray()
CharArrayWriter.toCharArray()public java.lang.String toString()
toString in class java.lang.ObjectCharArrayWriter.toString()Copyright © 2003-present Jodd Team