Class LogWriter


  • public class LogWriter
    extends java.lang.Object
    A writer that writes to a LogixNG log.
    • Constructor Summary

      Constructors 
      Constructor Description
      LogWriter​(Log log, java.io.OutputStream output, java.lang.String name)
      Creates a LogWriter object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(LogRow row)
      Writes one row of data.
      • Methods inherited from class java.lang.Object

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

      • LogWriter

        public LogWriter​(Log log,
                         java.io.OutputStream output,
                         java.lang.String name)
                  throws java.io.IOException,
                         java.lang.NoSuchMethodException,
                         java.lang.InstantiationException,
                         java.lang.IllegalAccessException,
                         java.lang.IllegalArgumentException,
                         java.lang.reflect.InvocationTargetException
        Creates a LogWriter object.
        Parameters:
        log - the log
        output - the output stream
        name - the name of the log
        Throws:
        java.io.IOException - if an I/O error occurs
        java.lang.NoSuchMethodException - if an instance of the decoder class cannot be instansiated
        java.lang.InstantiationException - if an instance of the decoder class cannot be instansiated
        java.lang.IllegalAccessException - if an instance of the decoder class cannot be instansiated
        java.lang.reflect.InvocationTargetException - if a method on the instance of the decoder class cannot be called
        java.lang.IllegalArgumentException
    • Method Detail

      • write

        public void write​(LogRow row)
                   throws java.io.IOException
        Writes one row of data.
        Parameters:
        row - the row to write
        Throws:
        java.io.IOException - if an I/O error occurs