Interface CharsetStringBuilder

    • Method Detail

      • append

        void append​(byte b)
        Deprecated.
        Parameters:
        b - An encoded byte to append
      • append

        void append​(char c)
        Deprecated.
        Parameters:
        c - A decoded character to append
      • append

        default void append​(byte[] bytes)
        Deprecated.
        Parameters:
        bytes - Array of encoded bytes to append
      • append

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

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

        default void append​(java.nio.ByteBuffer buf)
        Deprecated.
        Parameters:
        buf - Buffer of encoded bytes to append. The bytes are consumed from the buffer.
      • build

        java.lang.String build()
                        throws java.nio.charset.CharacterCodingException
        Deprecated.

        Build the completed string and reset the buffer.

        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.
      • reset

        void reset()
        Deprecated.