Class BERSet

  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Constructor Detail

      • BERSet

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

        public BERSet​(BERTagDecoder decoder,
                      java.io.InputStream stream,
                      int[] bytes_read)
               throws java.io.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:
        java.io.IOException - failed to construct
    • Method Detail

      • write

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