public class SMimeCompressed extends CompressedDataStream
contentType, DEFAULT_BLOCKSIZE, EXPLICIT, IMPLICIT, m_blockSize, m_compressionAlgorithm, m_encapContentType, m_inputStream, m_version| Constructor and Description |
|---|
SMimeCompressed()
Creates a new SMimeCompressed object.
|
SMimeCompressed(java.io.InputStream inputstream)
Creates a new SMimeCompressed object where the BER encoded message is read
from the given input stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setCompressionAlgorithm(AlgorithmID algorithmid)
This method is used to set the Compression algorithm
|
ASN1Object |
toASN1Object(int blocksize)
Returns the S/MIME compressed message as an ASN1Object.
|
void |
writeTo(java.io.OutputStream os)
Writes this SMimeCompressed object to the supplied output stream.
|
void |
writeTo(java.io.OutputStream os,
int blocksize)
Writes this SMimeCompressed object to the supplied output stream.
|
decode, getBlockSize, getCompressionAlgorithm, getCompressionProvider, getContentType, getEncapsulatedContentInfoStream, getEncapsulatedContentType, getInputStream, getMode, getVersion, setBlockSize, setCompressionProvider, setInputStream, toASN1Object, toString, toStringpublic SMimeCompressed(java.io.InputStream inputstream)
throws CMSParsingException,
java.io.IOException
Do not use this constructor for supplying the content data
to be enveloped. This constructor may be used by the recipient for parsing an
already exisiting SMimeCompressed object, supplied as BER encoding
from an input stream, that may have been created by means of the
writeTo method.
inputstream - the input stream where the BER encoded message shall be read fromjava.io.IOException - if an I/O error occursCMSParsingExceptionpublic SMimeCompressed()
public void writeTo(java.io.OutputStream os,
int blocksize)
throws java.io.IOException
blockSize parameter indicates the block size to
be used for performimg block encoding.writeTo in class CompressedDataStreamos - the output stream to which this SMimeEncrypted shall be writtenblocksize - the block size for using block encodingjava.io.IOException - if an I/O error occurs while writing to the streampublic void writeTo(java.io.OutputStream os)
throws java.io.IOException
writeTo in class CompressedDataStreamos - the output stream to which this SMimeEncrypted shall be writtenjava.io.IOException - if an I/O error occurs while writing to the streampublic ASN1Object toASN1Object(int blocksize) throws CMSException
toASN1Object in class CompressedDataStreamblocksize - the block size defining the encoding scheme - and specifying
the length of each primitive encoded octet string component,
if positiveCMSException - if an error occurs while building the
ASN.1 objectpublic void setCompressionAlgorithm(AlgorithmID algorithmid)
algorithmid - the AlgorithmID used to compress the data