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 TempFileWriter extends BufferWriter
| Constructor and Description |
|---|
TempFileWriter(TempFile tempFile) |
| Modifier and Type | Method and Description |
|---|---|
TempFileWriter |
append(char c) |
TempFileWriter |
append(CharSequence csq) |
TempFileWriter |
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 TempFileWriter(TempFile tempFile) throws IOException
IOExceptionpublic 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 TempFileWriter append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic TempFileWriter append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic TempFileWriter 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.