Top Inners Fields Constructors Methods
org.bouncycastle.cms

public Class CMSTypedStream

extends Object
Class Inheritance
Known Direct Subclasses
org.bouncycastle.cms.PKCS7TypedStream
Imports
java.io.BufferedInputStream, .FilterInputStream, .IOException, .InputStream, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.util.io.Streams

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
protected InputStream
private final ASN1ObjectIdentifier
private static final int

Constructor Summary

AccessConstructor and Description
public
public
public
CMSTypedStream(String oid, InputStream in, int bufSize)

public
public
protected

Method Summary

Modifier and TypeMethod and Description
public void
public InputStream
public ASN1ObjectIdentifier
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_inback to summary
protected InputStream _in
_oidback to summary
private final ASN1ObjectIdentifier _oid
BUF_SIZback to summary
private static final int BUF_SIZ

Constructor Detail

CMSTypedStreamback to summary
public CMSTypedStream(InputStream in)
CMSTypedStreamback to summary
public CMSTypedStream(String oid, InputStream in)
CMSTypedStreamback to summary
public CMSTypedStream(String oid, InputStream in, int bufSize)
CMSTypedStreamback to summary
public CMSTypedStream(ASN1ObjectIdentifier oid, InputStream in)
CMSTypedStreamback to summary
public CMSTypedStream(ASN1ObjectIdentifier oid, InputStream in, int bufSize)
CMSTypedStreamback to summary
protected CMSTypedStream(ASN1ObjectIdentifier oid)

Method Detail

drainback to summary
public void drain() throws IOException
getContentStreamback to summary
public InputStream getContentStream()
getContentTypeback to summary
public ASN1ObjectIdentifier getContentType()
org.bouncycastle.cms back to summary

private Class CMSTypedStream.FullReaderStream

extends FilterInputStream
Class Inheritance

Field Summary

Inherited from java.io.FilterInputStream:
in

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
read(byte[]
the buffer into which the data is read.
buf
,
int
the start offset in array b at which the data is written.
off
,
int
the maximum number of bytes to read.
len
)

Overrides java.io.FilterInputStream.read.

Reads up to len bytes of data from this input stream into an array of bytes.

Inherited from java.io.FilterInputStream:
availableclosemarkmarkSupportedreadreadresetskip

Constructor Detail

FullReaderStreamback to summary
pack-priv FullReaderStream(InputStream in)

Method Detail

readback to summary
public int read(byte[] buf, int off, int len) throws IOException

Overrides java.io.FilterInputStream.read.

Doc from java.io.FilterInputStream.read.

Reads up to len bytes of data from this input stream into an array of bytes. If len is not zero, the method blocks until some input is available; otherwise, no bytes are read and 0 is returned.

Parameters
buf:byte[]

the buffer into which the data is read.

off:int

the start offset in array b at which the data is written.

len:int

the maximum number of bytes to read.

Returns:int

the total number of bytes read into the buffer, or -1 if there is no more data because the end of the stream has been reached.

Exceptions
IOException:
if an I/O error occurs.