Class IOTraceLogWriter

  • All Implemented Interfaces:
    java.io.Flushable, IOTraceWriter

    public class IOTraceLogWriter
    extends java.lang.Object
    implements IOTraceWriter
    This IOTraceWriter implementation implements persistence through a Logger instance.
    • Constructor Summary

      Constructors 
      Constructor Description
      IOTraceLogWriter​(@NotNull Logger log)
      Create a new instance persisting to log.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void flush()  
      void writeEntry​(@NotNull java.lang.String entry)
      Persist a entry
      void writeHeader​(@NotNull java.lang.String header)
      Persist a header
      • Methods inherited from class java.lang.Object

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

      • IOTraceLogWriter

        public IOTraceLogWriter​(@NotNull
                                @NotNull Logger log)
        Create a new instance persisting to log.
        Parameters:
        log -
    • Method Detail

      • writeHeader

        public void writeHeader​(@NotNull
                                @NotNull java.lang.String header)
        Description copied from interface: IOTraceWriter
        Persist a header
        Specified by:
        writeHeader in interface IOTraceWriter
      • writeEntry

        public void writeEntry​(@NotNull
                               @NotNull java.lang.String entry)
        Description copied from interface: IOTraceWriter
        Persist a entry
        Specified by:
        writeEntry in interface IOTraceWriter
      • flush

        public void flush()
        Specified by:
        flush in interface java.io.Flushable
        Specified by:
        flush in interface IOTraceWriter