public class DLBitStringParser 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 getBitStream() throws java.io.IOException
ASN1BitStringParser
ASN1BitStringParser.getPadBits()
.getBitStream
in interface ASN1BitStringParser
java.io.IOException
public java.io.InputStream getOctetStream() throws java.io.IOException
ASN1BitStringParser
getOctetStream
in interface ASN1BitStringParser
java.io.IOException
public int getPadBits()
ASN1BitStringParser
ASN1BitStringParser.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 ASN1BitStringParser
public ASN1Primitive getLoadedObject() throws java.io.IOException
InMemoryRepresentable
getLoadedObject
in interface InMemoryRepresentable
java.io.IOException
- for bad input data.public ASN1Primitive toASN1Primitive()
ASN1Encodable
toASN1Primitive
in interface ASN1Encodable