类 BaseIOLog

java.lang.Object
com.huangjian.modbus4j.sero.log.BaseIOLog
直接已知子类:
IOLog, RollingIOLog

public abstract class BaseIOLog extends Object

Abstract BaseIOLog class.

  • 字段详细资料

  • 构造器详细资料

    • BaseIOLog

      public BaseIOLog(File logFile)

      Constructor for BaseIOLog.

      参数:
      logFile - a File object.
  • 方法详细资料

    • createOut

      protected void createOut()
      Create the Print Writer output
    • close

      public void close()

      close.

    • input

      public void input(byte[] b)

      input.

      参数:
      b - an array of
      引用无效
      byte
      objects.
    • input

      public void input(byte[] b, int pos, int len)

      input.

      参数:
      b - an array of
      引用无效
      byte
      objects.
      pos - a int.
      len - a int.
    • output

      public void output(byte[] b)

      output.

      参数:
      b - an array of
      引用无效
      byte
      objects.
    • output

      public void output(byte[] b, int pos, int len)

      output.

      参数:
      b - an array of
      引用无效
      byte
      objects.
      pos - a int.
      len - a int.
    • log

      public void log(boolean input, byte[] b)

      log.

      参数:
      input - a boolean.
      b - an array of
      引用无效
      byte
      objects.
    • log

      public void log(boolean input, byte[] b, int pos, int len)

      log.

      参数:
      input - a boolean.
      b - an array of
      引用无效
      byte
      objects.
      pos - a int.
      len - a int.
    • log

      public void log(String message)

      log.

      参数:
      message - a String object.
    • sendByte

      public abstract void sendByte(String sendByteDataHex)
    • readByte

      public abstract void readByte(String readByteDataHex)
    • sizeCheck

      protected abstract void sizeCheck()
      Check the size of the logfile and perform adjustments as necessary