Class SerialDataDecoder

java.lang.Object
org.djutils.serialization.SerialDataDecoder
All Implemented Interfaces:
org.djutils.decoderdumper.Decoder

public class SerialDataDecoder
extends Object
implements org.djutils.decoderdumper.Decoder
Decoder for inspection of serialized data.

Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.

Version:
$Revision$, $LastChangedDate$, by $Author$, initial version Jan 3, 2019
Author:
Alexander Verbraeck, Peter Knoppers, Wouter Schakel
  • Constructor Details

    • SerialDataDecoder

      public SerialDataDecoder​(EndianUtil endianUtil)
      Construct a new SerialDataDecoder.
      Parameters:
      endianUtil - EndianUtil; the endian util to use to decode multi-byte values
  • Method Details

    • getResult

      public final String getResult()
      Specified by:
      getResult in interface org.djutils.decoderdumper.Decoder
    • getMaximumWidth

      public final int getMaximumWidth()
      Specified by:
      getMaximumWidth in interface org.djutils.decoderdumper.Decoder
    • append

      public final boolean append​(int address, byte theByte) throws IOException
      Specified by:
      append in interface org.djutils.decoderdumper.Decoder
      Throws:
      IOException
    • ignoreForIdenticalOutputCheck

      public final boolean ignoreForIdenticalOutputCheck()
      Specified by:
      ignoreForIdenticalOutputCheck in interface org.djutils.decoderdumper.Decoder