public class CharArrayBufferWriter extends BufferWriter
for a possibly more efficient implementation.| Constructor and Description |
|---|
CharArrayBufferWriter(int initialSize) |
| 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) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
public void write(int c)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf)
throws IOException
write in class WriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void write(String str) 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()
public 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 © 2016. All rights reserved.