本文整理匯總了Java中org.bouncycastle.asn1.ASN1OctetString.getOctetStream方法的典型用法代碼示例。如果您正苦於以下問題:Java ASN1OctetString.getOctetStream方法的具體用法?Java ASN1OctetString.getOctetStream怎麽用?Java ASN1OctetString.getOctetStream使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.bouncycastle.asn1.ASN1OctetString
的用法示例。
在下文中一共展示了ASN1OctetString.getOctetStream方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getContent
import org.bouncycastle.asn1.ASN1OctetString; //導入方法依賴的package包/類
/**
* Return the uncompressed content.
*
* @return the uncompressed content
* @throws CMSException if there is an exception uncompressing the data.
* @deprecated use getContent(InputExpanderProvider)
*/
public byte[] getContent()
throws CMSException
{
ContentInfo content = comData.getEncapContentInfo();
ASN1OctetString bytes = (ASN1OctetString)content.getContent();
InflaterInputStream zIn = new InflaterInputStream(bytes.getOctetStream());
try
{
return CMSUtils.streamToByteArray(zIn);
}
catch (IOException e)
{
throw new CMSException("exception reading compressed stream.", e);
}
}