Package net.i2p.util
Class HexDump
java.lang.Object
net.i2p.util.HexDump
Hexdump class (well, it's actually a namespace with some functions,
but let's stick with java terminology :-). These methods generate
an output that resembles `hexdump -C` (Windows users: do you
remember `debug` in the DOS age?).
- Author:
- human
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringdump(byte[] data) Dump a byte array in a String.static Stringdump(byte[] data, int off, int len) Dump a byte array in a String.static voiddump(byte[] data, int off, int len, OutputStream out) Dump a byte array through a stream.static voiddump(byte[] data, OutputStream out) Dump a byte array through a stream.
-
Constructor Details
-
HexDump
public HexDump()
-
-
Method Details
-
dump
Dump a byte array in a String.- Parameters:
data- Data to be dumped
-
dump
Dump a byte array in a String.- Parameters:
data- Data to be dumpedoff- Offset from the beginning ofdatalen- Number of bytes ofdatato be dumped
-
dump
Dump a byte array through a stream.- Parameters:
data- Data to be dumpedout- Output stream- Throws:
IOException
-
dump
Dump a byte array through a stream.- Parameters:
data- Data to be dumpedoff- Offset from the beginning ofdatalen- Number of bytes ofdatato be dumpedout- Output stream- Throws:
IOException
-