|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasn.BerDecoder
org.jasn.DerDecoder
A decoder for parsing DER encoded ASN.1 value from an input stream.
| Constructor Summary | |
DerDecoder(InputStream in)
Creates a decoder for parsing BER encoded ASN.1 values from the specified input stream. |
|
DerDecoder(InputStream in,
int bufSize)
Creates a decoder for parsing BER encoded ASN.1 values from the specified input stream. |
|
| Method Summary | |
BitString |
decodeBitString(BitString set)
Decodes an ASN.1 BIT STRING value from the underlying stream and appends its bit values to the specified BitString.
|
boolean |
decodeBoolean()
Decodes an ASN.1 BOOLEAN value from the underlying stream and returns it as a boolean value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DerDecoder(InputStream in,
int bufSize)
bufSize will be used
for decoding.
in - the underlying input stream.public DerDecoder(InputStream in)
in - the underlying input stream.| Method Detail |
public boolean decodeBoolean()
throws IOException
boolean value.
decodeBoolean in interface Asn1DecoderdecodeBoolean in class BerDecoderIOException - if an I/O error occurs.
DecodingException - if the bytes read do not represent a valid BER
encoded BOOLEAN value.
public BitString decodeBitString(BitString set)
throws IOException
BitString.
The first bit of the decode BIT STRING value corresponds to the bit
at index set.length() + 1 of the BitString.
The total number of bit contained in the decoded BIT STRING may be
retrieved by invoking the length
method of the returned BitString.
decodeBitString in interface Asn1DecoderdecodeBitString in class BerDecoderset - the BitString to which the decoded bits are appended.
BitString instance representing the content of the
decoded BIT STRING.
IOException - if an I/O error occurs.
DecodingException - if the bytes read do not represent a valid BER
encoded BIT STRING value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||