Class BERSequence

All Implemented Interfaces:
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:
  • Constructor Details

    • BERSequence

      public BERSequence()
      Constructs a sequence element.
    • BERSequence

      public BERSequence(BERTagDecoder decoder, InputStream stream, int[] bytes_read) throws 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:
      IOException - failed to construct
  • Method Details

    • getType

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

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