//
Asn1InputStream aIn = new Asn1InputStream(bOut.toByteArray());
ContentInfoParser cp = new ContentInfoParser((Asn1Sequence)aIn.readObject());
CompressedDataParser comData = new CompressedDataParser((Asn1Sequence)cp.getContent(BerTag.SEQUENCE));
ContentInfoParser content = comData.getEncapContentInfo();
Asn1OctetString bytes = (Asn1OctetString)content.getContent(BerTag.OCTET_STRING);
InputStream in = bytes.getOctetStream();
int count = 0;