Class LogReader


  • public class LogReader
    extends java.lang.Object
    A reader that reads from a LogixNG log.
    • Constructor Summary

      Constructors 
      Constructor Description
      LogReader​(Log log, java.io.InputStream input)
      Creates a LogWriter object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Get the name of the log.
      LogRow read()
      Try to read one more row of data.
      • Methods inherited from class java.lang.Object

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

      • LogReader

        public LogReader​(Log log,
                         java.io.InputStream input)
                  throws java.io.IOException,
                         java.lang.NoSuchMethodException,
                         java.lang.InstantiationException,
                         java.lang.IllegalAccessException,
                         java.lang.IllegalArgumentException,
                         java.lang.reflect.InvocationTargetException,
                         Log.InvalidFormatException,
                         Log.UnsupportedVersionException
        Creates a LogWriter object.
        Parameters:
        log - the log
        input - the input stream
        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
        Log.InvalidFormatException - invalid format of the header
        Log.UnsupportedVersionException - invalid version of the file
        java.lang.IllegalArgumentException
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the name of the log.
        Returns:
        the name