Class StringSection

    • Constructor Detail

      • StringSection

        public StringSection​(TransmissionMetrics aTransmissionMetrics)
        Constructs an according instance from the given configuration. The configuration attributes are taken from the TransmissionMetrics configuration object, though only those attributes are supported which are also supported by the other constructors!
        Parameters:
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
      • StringSection

        public StringSection​(String aValue,
                             TransmissionMetrics aTransmissionMetrics)
        Constructs an according instance from the given configuration. The configuration attributes are taken from the TransmissionMetrics configuration object, though only those attributes are supported which are also supported by the other constructors!
        Parameters:
        aValue - The payload to be contained by the StringSection.
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
      • StringSection

        public StringSection​(String aAlias,
                             String aValue,
                             TransmissionMetrics aTransmissionMetrics)
        Constructs an according instance from the given configuration. The configuration attributes are taken from the TransmissionMetrics configuration object, though only those attributes are supported which are also supported by the other constructors!
        Parameters:
        aAlias - The alias which identifies the content of this instance.
        aValue - The payload to be contained by the StringSection.
        aTransmissionMetrics - The TransmissionMetrics to be used for configuring this instance.
      • StringSection

        public StringSection​(Charset aCharset)
        Constructs a StringSection with a payload expected to be encoded with the given Charset.
        Parameters:
        aCharset - The Charset to be used for encoding and decoding String instances.
      • StringSection

        public StringSection​(String aAlias,
                             String aValue,
                             Charset aCharset)
        Constructs a StringSection with the given String payload being encoded with the given Charset.
        Parameters:
        aAlias - The alias which identifies the content of this segment.
        aValue - The payload to be contained by this StringSection.
        aCharset - The Charset to be used for encoding the String.