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
AccessLogAppender
append
in interface AccessLogAppender
accessLogEntry
- 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
AccessLogAppender
close
in interface Closeable
close
in interface AutoCloseable
close
in interface AccessLogAppender
IOException
Copyright © 2015 Oracle Corporation. All rights reserved.