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.Writer
Writer.write(char[], int, int)
public void write(int b)
write
in class java.io.Writer
public void write(java.lang.String s, int off, int len)
write
in class java.io.Writer
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
.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.Writer
public void flush()
FastCharArrayWriter
has no effects.flush
in interface java.io.Flushable
flush
in class java.io.Writer
public void reset()
CharArrayWriter.reset()
public void writeTo(java.io.Writer out) throws java.io.IOException
java.io.IOException
CharArrayWriter.writeTo(Writer)
public char[] toCharArray()
CharArrayWriter.toCharArray()
public java.lang.String toString()
toString
in class java.lang.Object
CharArrayWriter.toString()
Copyright © 2003-present Jodd Team