jlibs.core.io
Class CharArrayWriter2
java.lang.Object
java.io.Writer
java.io.CharArrayWriter
jlibs.core.io.CharArrayWriter2
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class CharArrayWriter2
- extends CharArrayWriter
This is an extension of CharArrayWriter.
You can get access to the internal char buffer using
toCharSequence()
- Author:
- Santhosh Kumar T
| Methods inherited from class java.io.CharArrayWriter |
append, append, append, close, flush, reset, size, toCharArray, toString, write, write, write, writeTo |
CharArrayWriter2
public CharArrayWriter2()
CharArrayWriter2
public CharArrayWriter2(int initialSize)
CharArrayWriter2
public CharArrayWriter2(Reader reader,
int readBuffSize,
boolean close)
throws IOException
- Throws:
IOException
toCharSequence
public CharArray toCharSequence()
- Returns the input data as
CharArray.
Note that the internal buffer is not copied.
readFrom
public int readFrom(Reader reader,
int readBuffSize,
boolean close)
throws IOException
- Throws:
IOException
Copyright © 2018. All rights reserved.