01: package org.bouncycastle.bcpg;
02:
03: import java.io.IOException;
04:
05: /**
06: * Basic type for a marker packet
07: */
08: public class MarkerPacket extends ContainedPacket {
09: // "PGP"
10:
11: byte[] marker = { (byte) 0x50, (byte) 0x47, (byte) 0x50 };
12:
13: public MarkerPacket(BCPGInputStream in) throws IOException {
14: in.readFully(marker);
15: }
16:
17: public void encode(BCPGOutputStream out) throws IOException {
18: out.writePacket(MARKER, marker, true);
19: }
20: }
|