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. |
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 © 2014 Oracle Corporation. All Rights Reserved.