Package org.djutils.serialization
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 Summary
Constructors Constructor Description SerialDataDecoder(EndianUtil endianUtil)
Construct a new SerialDataDecoder. -
Method Summary
Modifier and Type Method Description boolean
append(int address, byte theByte)
int
getMaximumWidth()
String
getResult()
boolean
ignoreForIdenticalOutputCheck()
-
Constructor Details
-
SerialDataDecoder
Construct a new SerialDataDecoder.- Parameters:
endianUtil
- EndianUtil; the endian util to use to decode multi-byte values
-
-
Method Details
-
getResult
- Specified by:
getResult
in interfaceorg.djutils.decoderdumper.Decoder
-
getMaximumWidth
public final int getMaximumWidth()- Specified by:
getMaximumWidth
in interfaceorg.djutils.decoderdumper.Decoder
-
append
- Specified by:
append
in interfaceorg.djutils.decoderdumper.Decoder
- Throws:
IOException
-
ignoreForIdenticalOutputCheck
public final boolean ignoreForIdenticalOutputCheck()- Specified by:
ignoreForIdenticalOutputCheck
in interfaceorg.djutils.decoderdumper.Decoder
-