public class PacketDumpUtil
extends java.lang.Object
Constructor and Description |
---|
PacketDumpUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
hexdump(ContainedPacket packet)
Return a formatted hex dump of the packet encoding of the given packet.
|
static java.lang.String |
hexdump(int startIndent,
ContainedPacket packet)
Return a formatted hex dump of the packet encoding of the given packet.
|
public static java.lang.String hexdump(ContainedPacket packet) throws java.io.IOException
packet
- packetjava.io.IOException
- if an exception happens during packet encodingpublic static java.lang.String hexdump(int startIndent, ContainedPacket packet) throws java.io.IOException
startIndent
- shift the encodings octet stream by a number of bytespacket
- packetjava.io.IOException
- if an exception happens during packet encoding