public class CMSCompressedDataStreamGenerator extends Object
A simple example of usage.
CMSCompressedDataStreamGenerator gen = new CMSCompressedDataStreamGenerator(); OutputStream cOut = gen.open(outputStream, new ZlibCompressor()); cOut.write(data); cOut.close();
Constructor and Description |
---|
CMSCompressedDataStreamGenerator()
base constructor
|
Modifier and Type | Method and Description |
---|---|
OutputStream |
open(ASN1ObjectIdentifier contentOID,
OutputStream out,
OutputCompressor compressor)
Open a compressing output stream.
|
OutputStream |
open(OutputStream out,
OutputCompressor compressor) |
OutputStream |
open(OutputStream out,
String compressionOID)
Deprecated.
use open(OutputStream, ContentCompressor)
|
OutputStream |
open(OutputStream out,
String contentOID,
String compressionOID)
Deprecated.
use open(OutputStream, ASN1ObjectIdentifier, ContentCompressor)
|
void |
setBufferSize(int bufferSize)
Set the underlying string size for encapsulated data
|
public static final String ZLIB
public CMSCompressedDataStreamGenerator()
public void setBufferSize(int bufferSize)
bufferSize
- length of octet strings to buffer the data.public OutputStream open(OutputStream out, String compressionOID) throws IOException
IOException
public OutputStream open(OutputStream out, String contentOID, String compressionOID) throws IOException
IOException
public OutputStream open(OutputStream out, OutputCompressor compressor) throws IOException
IOException
public OutputStream open(ASN1ObjectIdentifier contentOID, OutputStream out, OutputCompressor compressor) throws IOException
contentOID
- out
- compressor
- IOException
Copyright © 2015. All rights reserved.