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