Package org.bouncycastle.bcpg.test
Class PacketDumpUtil
- java.lang.Object
-
- org.bouncycastle.bcpg.test.PacketDumpUtil
-
public class PacketDumpUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PacketDumpUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringhexdump(int startIndent, ContainedPacket packet)Return a formatted hex dump of the packet encoding of the given packet.static java.lang.Stringhexdump(ContainedPacket packet)Return a formatted hex dump of the packet encoding of the given packet.
-
-
-
Method Detail
-
hexdump
public static java.lang.String hexdump(ContainedPacket packet) throws java.io.IOException
Return a formatted hex dump of the packet encoding of the given packet.- Parameters:
packet- packet- Returns:
- formatted hex dump
- Throws:
java.io.IOException- if an exception happens during packet encoding
-
hexdump
public static java.lang.String hexdump(int startIndent, ContainedPacket packet) throws java.io.IOExceptionReturn 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:
java.io.IOException- if an exception happens during packet encoding
-
-