01: package org.bouncycastle.bcpg;
02:
03: import java.io.*;
04:
05: /**
06: * generic compressed data object.
07: */
08: public class CompressedDataPacket extends InputStreamPacket {
09: int algorithm;
10:
11: CompressedDataPacket(BCPGInputStream in) throws IOException {
12: super (in);
13:
14: algorithm = in.read();
15: }
16:
17: /**
18: * return the algorithm tag value.
19: *
20: * @return algorithm tag value.
21: */
22: public int getAlgorithm() {
23: return algorithm;
24: }
25: }
|