public class SerialDataDumper extends org.djutils.decoderdumper.Dumper<SerialDataDumper>
Copyright (c) 2019-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
$LastChangedDate: 2019-06-07 01:33:02 +0200 (Mon, 7 Jun 2019) $, @version $Revision: 1401 $, by $Author: pknoppers $, initial
version Jun 27, 2019
Constructor and Description |
---|
SerialDataDumper(EndianUtil endianUtil)
Construct a new SerialDataDumper.
|
SerialDataDumper(EndianUtil endianUtil,
int addressOffset)
Construct a new SerialDataDumper.
|
Modifier and Type | Method and Description |
---|---|
static String |
serialDataDumper(EndianUtil endianUtil,
byte[] bytes)
Create a SerialDataDumper object with addressOffset 0; use it to dump an array of bytes and return the dump as a String.
|
static String |
serialDataDumper(EndianUtil endianUtil,
int addressOffset,
byte[] bytes)
Create a SerialDataDumper object; use it to dump an array of bytes and return the dump as a String.
|
String |
toString() |
public SerialDataDumper(EndianUtil endianUtil, int addressOffset)
endianUtil
- EndianUtil; used to decode multi-byte valuesaddressOffset
- int; address of the first byte that will be processedpublic SerialDataDumper(EndianUtil endianUtil)
endianUtil
- EndianUtil; used to decode multi-byte valuespublic static String serialDataDumper(EndianUtil endianUtil, int addressOffset, byte[] bytes)
endianUtil
- EndianUtil; used to decode multi-byte valuesaddressOffset
- int; address of the first bytebytes
- byte[]; the bytes to hex-dumpbytes
public static String serialDataDumper(EndianUtil endianUtil, byte[] bytes)
endianUtil
- EndianUtil; used to decode multi-byte valuesbytes
- byte[]; the bytes to hex-dumpbytes
public String toString()
toString
in class org.djutils.decoderdumper.Dumper<SerialDataDumper>
Copyright © 2018–2019 Delft University of Technology. All rights reserved.