Logo Search packages:      
Sourcecode: bouncycastle version File versions  Download package

CompressedDataPacket.java

package org.bouncycastle.bcpg;

import java.io.*;

/**
 * generic compressed data object.
 */
00008 public class CompressedDataPacket 
    extends InputStreamPacket
{
    int    algorithm;
    
    CompressedDataPacket(
        BCPGInputStream    in)
        throws IOException
    {
        super(in);
        
        algorithm = in.read();    
    }
    
    /**
     * return the algorithm tag value.
     * 
     * @return algorithm tag value.
     */
00027     public int getAlgorithm()
    {
        return algorithm;
    }
}

Generated by  Doxygen 1.6.0   Back to index