Package org.bouncycastle.bcpg.test
Class PacketDumpUtil
java.lang.Object
org.bouncycastle.bcpg.test.PacketDumpUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
hexdump
(int startIndent, ContainedPacket packet) Return a formatted hex dump of the packet encoding of the given packet.static String
hexdump
(ContainedPacket packet) Return a formatted hex dump of the packet encoding of the given packet.
-
Constructor Details
-
PacketDumpUtil
public PacketDumpUtil()
-
-
Method Details
-
hexdump
Return a formatted hex dump of the packet encoding of the given packet.- Parameters:
packet
- packet- Returns:
- formatted hex dump
- Throws:
IOException
- if an exception happens during packet encoding
-
hexdump
Return a formatted hex dump of the packet encoding of the given packet. If startIndent is non-zero, the hex dump is shifted right by the startIndent octets.- Parameters:
startIndent
- shift the encodings octet stream by a number of bytespacket
- packet- Returns:
- formatted hex dump
- Throws:
IOException
- if an exception happens during packet encoding
-