Package com.unboundid.asn1
Class ASN1StreamReaderSet
java.lang.Object
com.unboundid.asn1.ASN1StreamReaderSet
This class provides a data structure which is used in the course of reading
an ASN.1 set from an ASN.1 stream reader. It provides access to the BER type
and the total number of bytes in the encoded representations of all of the
embedded values, and provides a method to determine when the end of the set
has been reached.
-
Method Summary
Modifier and TypeMethodDescriptionintRetrieves the number of bytes contained in the encoded representations of all the embedded values.bytegetType()Retrieves the BER type for this ASN.1 set.booleanIndicates whether there are more elements in this set to be read from the associated ASN.1 stream reader.
-
Method Details
-
getType
Retrieves the BER type for this ASN.1 set.- Returns:
- The BER type for this ASN.1 set.
-
getLength
Retrieves the number of bytes contained in the encoded representations of all the embedded values.- Returns:
- The number of bytes contained in the encoded representations of all the embedded values.
-
hasMoreElements
Indicates whether there are more elements in this set to be read from the associated ASN.1 stream reader.- Returns:
trueif there are more elements in this set to be read from the associated ASN.1 stream reader or false if the end of the set has been reached.- Throws:
ASN1Exception- If the associated ASN.1 stream reader has already read beyond the end of the set.
-