public abstract class LogOutputStream extends OutputStream
| Constructor and Description |
|---|
LogOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Writes all remaining data from the buffer.
|
void |
flush()
Flush this log stream.
|
protected void |
processBuffer()
Converts the buffer to a string and sends it to
processLine. |
protected abstract void |
processLine(String line)
Logs a line to the log system of the user.
|
void |
write(int cc)
Write the data to the buffer and flush the buffer, if a line separator is
detected.
|
write, writepublic void write(int cc)
throws IOException
write in class OutputStreamcc - data to log (byte).IOExceptionOutputStream.write(int)public void flush()
flush in interface Flushableflush in class OutputStreamOutputStream.flush()public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionOutputStream.close()protected void processBuffer()
processLine.protected abstract void processLine(String line)
line - the line to log.Copyright © 2021. All rights reserved.