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 AutoTempFileWriter extends BufferWriter
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_TEMP_FILE_THRESHOLD
A reasonable default temp file threshold, currently 4 MB.
|
| Constructor and Description |
|---|
AutoTempFileWriter(BufferWriter initialBuffer,
TempFileContext tempFileContext)
Uses the default temp file threshold.
|
AutoTempFileWriter(BufferWriter initialBuffer,
TempFileContext tempFileContext,
long tempFileThreshold) |
| Modifier and Type | Method and Description |
|---|---|
AutoTempFileWriter |
append(char c) |
AutoTempFileWriter |
append(CharSequence csq) |
AutoTempFileWriter |
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 static final long DEFAULT_TEMP_FILE_THRESHOLD
public AutoTempFileWriter(BufferWriter initialBuffer, TempFileContext tempFileContext, long tempFileThreshold)
public AutoTempFileWriter(BufferWriter initialBuffer, TempFileContext tempFileContext)
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 AutoTempFileWriter append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic AutoTempFileWriter append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic AutoTempFileWriter 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()
throws IOException
BufferWritergetLength in class BufferWriterIOExceptionpublic String toString()
BufferWritertoString in class BufferWriterTo get access to the buffered content.public BufferResult getResult() throws IllegalStateException, IOException
BufferWritergetResult in class BufferWriterIllegalStateException - if not closedIOExceptionCopyright © 2010–2019 AO Industries, Inc.. All rights reserved.