|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.cms.CMSCompressedDataStreamGenerator
General class for generating a compressed CMS message stream.
A simple example of usage.
CMSCompressedDataStreamGenerator gen = new CMSCompressedDataStreamGenerator(); OutputStream cOut = gen.open(outputStream, new ZlibCompressor()); cOut.write(data); cOut.close();
| Field Summary | |
static java.lang.String |
ZLIB
|
| Constructor Summary | |
CMSCompressedDataStreamGenerator()
base constructor |
|
| Method Summary | |
java.io.OutputStream |
open(org.bouncycastle.asn1.ASN1ObjectIdentifier contentOID,
java.io.OutputStream out,
OutputCompressor compressor)
Open a compressing output stream. |
java.io.OutputStream |
open(java.io.OutputStream out,
OutputCompressor compressor)
Open a compressing output stream with the PKCS#7 content type OID of "data". |
void |
setBufferSize(int bufferSize)
Set the underlying string size for encapsulated data |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ZLIB
| Constructor Detail |
public CMSCompressedDataStreamGenerator()
| Method Detail |
public void setBufferSize(int bufferSize)
bufferSize - length of octet strings to buffer the data.
public java.io.OutputStream open(java.io.OutputStream out,
OutputCompressor compressor)
throws java.io.IOException
out - the stream to encode to.compressor - the type of compressor to use.
java.io.IOException
public java.io.OutputStream open(org.bouncycastle.asn1.ASN1ObjectIdentifier contentOID,
java.io.OutputStream out,
OutputCompressor compressor)
throws java.io.IOException
contentOID - the content type OID.out - the stream to encode to.compressor - the type of compressor to use.
java.io.IOException
|
Bouncy Castle Cryptography Library 1.84 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||