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 LoggingWriter extends BufferWriter
| Constructor and Description |
|---|
LoggingWriter(BufferWriter wrapped,
Writer log) |
| Modifier and Type | Method and Description |
|---|---|
LoggingWriter |
append(char c) |
LoggingWriter |
append(CharSequence csq) |
LoggingWriter |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
long |
getId() |
long |
getLength()
Gets the number of characters in this buffer.
|
LoggingResult |
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 LoggingWriter(BufferWriter wrapped, Writer log) throws IOException
IOExceptionpublic long getId()
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 LoggingWriter append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic LoggingWriter append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic LoggingWriter 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 LoggingResult getResult() throws IllegalStateException, IOException
BufferWritergetResult in class BufferWriterIllegalStateException - if not closedIOExceptionCopyright © 2010–2019 AO Industries, Inc.. All rights reserved.