|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.Writer
jodd.io.FastCharArrayWriter
public class FastCharArrayWriter
Similar as FastByteArrayOutputStream but for Writer.
| Field Summary |
|---|
| Fields inherited from class java.io.Writer |
|---|
lock |
| Constructor Summary | |
|---|---|
FastCharArrayWriter()
Creates a new writer. |
|
FastCharArrayWriter(int size)
Creates a new char array writer, with a buffer capacity of the specified size, in bytes. |
|
| Method Summary | |
|---|---|
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)
Calls the write(char[]) method. |
void |
write(java.lang.String s,
int off,
int len)
|
void |
writeTo(java.io.Writer out)
|
| Methods inherited from class java.io.Writer |
|---|
append, append, append, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FastCharArrayWriter()
public FastCharArrayWriter(int size)
size - the initial size.
java.lang.IllegalArgumentException - if size is negative.| Method Detail |
|---|
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.WriterWriter.write(int)
public 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 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(java.io.Writer)public char[] toCharArray()
CharArrayWriter.toCharArray()public java.lang.String toString()
toString in class java.lang.ObjectCharArrayWriter.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||