Class CharsetStringBuilder.DecoderStringBuilder

    • Constructor Detail

      • DecoderStringBuilder

        public DecoderStringBuilder​(java.nio.charset.CharsetDecoder charsetDecoder)
        Deprecated.
    • Method Detail

      • append

        public void append​(byte b)
        Deprecated.
        Specified by:
        append in interface CharsetStringBuilder
        Parameters:
        b - An encoded byte to append
      • append

        public void append​(char c)
        Deprecated.
        Specified by:
        append in interface CharsetStringBuilder
        Parameters:
        c - A decoded character to append
      • append

        public void append​(java.lang.CharSequence chars,
                           int offset,
                           int length)
        Deprecated.
        Specified by:
        append in interface CharsetStringBuilder
        Parameters:
        chars - sequence of decoded characters
        offset - offset into the array
        length - the number of character to append from the sequence.
      • append

        public void append​(byte[] b,
                           int offset,
                           int length)
        Deprecated.
        Specified by:
        append in interface CharsetStringBuilder
        Parameters:
        b - Array of encoded bytes
        offset - offset into the array
        length - the number of bytes to append from the array.
      • append

        public void append​(java.nio.ByteBuffer buf)
        Deprecated.
        Specified by:
        append in interface CharsetStringBuilder
        Parameters:
        buf - Buffer of encoded bytes to append. The bytes are consumed from the buffer.
      • build

        public java.lang.String build()
                               throws java.nio.charset.CharacterCodingException
        Deprecated.
        Description copied from interface: CharsetStringBuilder

        Build the completed string and reset the buffer.

        Specified by:
        build in interface CharsetStringBuilder
        Returns:
        The decoded built string which must be complete in regard to any multibyte sequences.
        Throws:
        java.nio.charset.CharacterCodingException - If the bytes cannot be correctly decoded or a multibyte sequence is incomplete.