Package org.djutils.serialization
Class SerialDataDecoder
- java.lang.Object
-
- org.djutils.serialization.SerialDataDecoder
-
- All Implemented Interfaces:
Decoder
public class SerialDataDecoder extends Object implements Decoder
Decoder for inspection of serialized data.Copyright (c) 2013-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Jan 3, 2019
- Author:
- Alexander Verbraeck, Peter Knoppers
-
-
Constructor Summary
Constructors Constructor Description SerialDataDecoder(EndianUtil endianUtil)
Construct a new SerialDataDecoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
append(int address, byte theByte)
int
getMaximumWidth()
String
getResult()
boolean
ignoreForIdenticalOutputCheck()
-
-
-
Constructor Detail
-
SerialDataDecoder
public SerialDataDecoder(EndianUtil endianUtil)
Construct a new SerialDataDecoder.- Parameters:
endianUtil
- EndianUtil; the endian util to use to decode multi-byte values
-
-
Method Detail
-
getMaximumWidth
public final int getMaximumWidth()
- Specified by:
getMaximumWidth
in interfaceDecoder
-
append
public final boolean append(int address, byte theByte) throws IOException
- Specified by:
append
in interfaceDecoder
- Throws:
IOException
-
ignoreForIdenticalOutputCheck
public final boolean ignoreForIdenticalOutputCheck()
- Specified by:
ignoreForIdenticalOutputCheck
in interfaceDecoder
-
-