@Deprecated public class BERBitStringParser extends java.lang.Object implements ASN1BitStringParser
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
getBitStream()
Deprecated.
Return an InputStream representing the contents of the BIT STRING.
|
ASN1Primitive |
getLoadedObject()
Deprecated.
Get the in-memory representation of the ASN.1 object.
|
java.io.InputStream |
getOctetStream()
Deprecated.
Return an InputStream representing the contents of the BIT STRING, where the
content is expected to be octet-aligned (this will be automatically checked
during parsing).
|
int |
getPadBits()
Deprecated.
Return the number of pad bits, if any, in the final byte, if any, read from
ASN1BitStringParser.getBitStream(). |
ASN1Primitive |
toASN1Primitive()
Deprecated.
Return an object, possibly constructed, of ASN.1 primitives
|
public java.io.InputStream getOctetStream()
throws java.io.IOException
ASN1BitStringParsergetOctetStream in interface ASN1BitStringParserjava.io.IOExceptionpublic java.io.InputStream getBitStream()
throws java.io.IOException
ASN1BitStringParserASN1BitStringParser.getPadBits().getBitStream in interface ASN1BitStringParserjava.io.IOExceptionpublic int getPadBits()
ASN1BitStringParserASN1BitStringParser.getBitStream(). This number is in the range zero to seven. That
number of the least significant bits of the final byte, if any, are not part
of the contents and should be ignored. NOTE: Must be called AFTER the stream
has been fully processed. (Does not need to be called if
ASN1BitStringParser.getOctetStream() was used instead of ASN1BitStringParser.getBitStream()).getPadBits in interface ASN1BitStringParserpublic ASN1Primitive getLoadedObject() throws java.io.IOException
InMemoryRepresentablegetLoadedObject in interface InMemoryRepresentablejava.io.IOException - for bad input data.public ASN1Primitive toASN1Primitive()
ASN1EncodabletoASN1Primitive in interface ASN1Encodable