public interface ASN1BitStringParser extends ASN1Encodable, InMemoryRepresentable
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getBitStream()
Return an InputStream representing the contents of the BIT STRING.
|
java.io.InputStream |
getOctetStream()
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()
Return the number of pad bits, if any, in the final byte, if any, read from
getBitStream() . |
toASN1Primitive
getLoadedObject
java.io.InputStream getBitStream() throws java.io.IOException
getPadBits()
.java.io.IOException
java.io.InputStream getOctetStream() throws java.io.IOException
java.io.IOException
int getPadBits()
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
getOctetStream()
was used instead of getBitStream()
).