Class BERSet

All Implemented Interfaces:
Serializable

public class BERSet extends BERConstruct
This class is for the Set object. A set object can contain a set of BER elements.
 ENCODING RULE:
  tag    = 0x31 (always constructed)
 
Version:
1.0 seeAlso CCITT X.209
See Also:
  • Constructor Details

    • BERSet

      public BERSet() throws IOException
      Constructs a set element.
      Throws:
      failed - to construct
      IOException
    • BERSet

      public BERSet(BERTagDecoder decoder, InputStream stream, int[] bytes_read) throws IOException
      Constructs a set element from an input stream.
      Parameters:
      decoder - decoder for application-specific BER
      stream - source
      bytes_read - array of 1 int; value incremented by number of bytes read from stream
      Throws:
      IOException - failed to construct
  • Method Details

    • write

      public void write(OutputStream stream) throws IOException
      Sends the BER encoding directly to a stream.
      Overrides:
      write in class BERConstruct
      Parameters:
      stream - output stream
      Throws:
      IOException - failed to write
    • 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.