public class HexDumper extends Dumper<HexDumper>
Copyright (c) 2013-2019 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
HexDumper()
Construct a new HexDumper.
|
HexDumper(int addressOffset)
Construct a new HexDumper.
|
Modifier and Type | Method and Description |
---|---|
static String |
hexDumper(byte[] bytes)
Create a HexDumper object with addressOffset 0; use it to dump an array of bytes and return the dump as a String.
|
static String |
hexDumper(int addressOffset,
byte[] bytes)
Create a HexDumper object; use it to dump an array of bytes and return the dump as a String.
|
String |
toString() |
addDecoder, addDecoder, append, append, append, append, flush, getMaximumWidth, setOutputStream, setSuppressMultipleIdenticalLines
public HexDumper(int addressOffset)
addressOffset
- int; address of the first byte that will be appendedpublic HexDumper()
public static String hexDumper(int addressOffset, byte[] bytes)
addressOffset
- int; address of the first bytebytes
- byte[]; the bytes to hex-dumpbytes
public static String hexDumper(byte[] bytes)
bytes
- byte[]; the bytes to hex-dumpbytes
Copyright © 2018–2019 Delft University of Technology. All rights reserved.