Output buffering library.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://aoindustries.com/contact
public class CharArrayBufferWriter extends BufferWriter
Maximum length is 2 ^ 30 characters (about 1 billion).
When this limit is insufficient, consider using along with
AutoTempFileWriter.
This class is not thread safe.
for a possibly more efficient implementation.| Constructor and Description |
|---|
CharArrayBufferWriter() |
| Modifier and Type | Method and Description |
|---|---|
CharArrayBufferWriter |
append(char c) |
CharArrayBufferWriter |
append(CharSequence csq) |
CharArrayBufferWriter |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
long |
getLength()
Gets the number of characters in this buffer.
|
BufferResult |
getResult()
Gets the result from this buffer.
|
String |
toString()
Gets a short message (like type and length).
|
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
public void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class WriterIOExceptionpublic CharArrayBufferWriter append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic CharArrayBufferWriter append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic CharArrayBufferWriter append(char c) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic long getLength()
BufferWritergetLength in class BufferWriterpublic String toString()
BufferWritertoString in class BufferWriterTo get access to the buffered content.public BufferResult getResult() throws IllegalStateException
BufferWritergetResult in class BufferWriterIllegalStateException - if not closedCopyright © 2010–2019 AO Industries, Inc.. All rights reserved.