using System.IO;
namespace Org.BouncyCastle.Bcpg
{
/// Generic compressed data object.
public class CompressedDataPacket
: InputStreamPacket
{
private readonly CompressionAlgorithmTag algorithm;
internal CompressedDataPacket(
BcpgInputStream bcpgIn)
: base(bcpgIn)
{
this.algorithm = (CompressionAlgorithmTag) bcpgIn.ReadByte();
}
/// The algorithm tag value.
public CompressionAlgorithmTag Algorithm
{
get { return algorithm; }
}
}
}