Class BERSequence

  • All Implemented Interfaces:
    java.io.Serializable

    public class BERSequence
    extends BERConstruct
    This class is for the Sequence object. A sequence object can contains a sequence of BER Elements.
     ENCODING RULE:
      tag    = 0x30 (always constructed)
     
    Version:
    1.0 seeAlso CCITT X.209
    See Also:
    Serialized Form
    • Constructor Detail

      • BERSequence

        public BERSequence()
        Constructs a sequence element.
      • BERSequence

        public BERSequence​(BERTagDecoder decoder,
                           java.io.InputStream stream,
                           int[] bytes_read)
                    throws java.io.IOException
        Constructs a sequence element from an input stream.
        Parameters:
        decoder - application-specific BER decoder
        stream - input stream from which to read BER
        bytes_read - array of 1 int; value is incremented by number of bytes read from stream
        Throws:
        java.io.IOException - failed to construct
    • Method Detail

      • getType

        public int getType()
        Gets the element type.
        Specified by:
        getType in class BERConstruct
        Returns:
        element type.
      • toString

        public java.lang.String toString()
        Gets the string representation.
        Specified by:
        toString in class BERConstruct
        Returns:
        string representation of tag.