Class StreamAppender

    • Constructor Summary

      Constructors 
      Constructor Description
      StreamAppender​(java.io.OutputStream output)
      Create a new StreamAppender instance writing log entries to the specified OutputStream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void append​(java.lang.String accessLogEntry)
      Append the specified access log entry.
      void close()
      Close any underlying resource owned by this appender.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamAppender

        public StreamAppender​(java.io.OutputStream output)
        Create a new StreamAppender instance writing log entries to the specified OutputStream.
    • Method Detail

      • append

        public void append​(java.lang.String accessLogEntry)
                    throws java.io.IOException
        Description copied from interface: AccessLogAppender
        Append the specified access log entry.
        Specified by:
        append in interface AccessLogAppender
        Parameters:
        accessLogEntry - The String value of the data to be append in the access log.
        Throws:
        java.io.IOException - If an I/O error occurred appending to the log.
      • close

        public void close()
                   throws java.io.IOException
        Description copied from interface: AccessLogAppender
        Close any underlying resource owned by this appender.
        Specified by:
        close in interface AccessLogAppender
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException