Class DefaultIOTraceWriter

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

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

      Constructors 
      Constructor Description
      DefaultIOTraceWriter​(@NotNull java.io.Writer writer)
      Create a new instance persisting to writer.
    • 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

      • DefaultIOTraceWriter

        public DefaultIOTraceWriter​(@NotNull
                                    @NotNull java.io.Writer writer)
        Create a new instance persisting to writer. It is the callers responsibility to close the writer when not needed anymore.
        Parameters:
        writer -
    • 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