public class StreamAppender extends Object implements AccessLogAppender
| Constructor and Description |
|---|
StreamAppender(OutputStream output)
Create a new
StreamAppender instance writing log entries to the
specified OutputStream. |
| Modifier and Type | Method and Description |
|---|---|
void |
append(String accessLogEntry)
Append the specified access log entry.
|
void |
close()
Close any underlying resource owned by this appender.
|
public StreamAppender(OutputStream output)
StreamAppender instance writing log entries to the
specified OutputStream.public void append(String accessLogEntry) throws IOException
AccessLogAppenderappend in interface AccessLogAppenderaccessLogEntry - The String value of the data to be append
in the access log.IOException - If an I/O error occurred appending to the log.public void close()
throws IOException
AccessLogAppenderclose in interface Closeableclose in interface AutoCloseableclose in interface AccessLogAppenderIOExceptionCopyright © 2018 Oracle Corporation. All Rights Reserved.