Class AbstractStreamBuilder<T,​B extends AbstractStreamBuilder<T,​B>>

    • Constructor Detail

      • AbstractStreamBuilder

        public AbstractStreamBuilder()
    • Method Detail

      • getCharset

        public java.nio.charset.Charset getCharset()
        Gets the Charset, defaults to Charset.defaultCharset().
        Returns:
        the Charset, defaults to Charset.defaultCharset().
      • setBufferSize

        public B setBufferSize​(int bufferSize)
        Sets the buffer size. Invalid input (bufferSize <= 0) resets the value to its default.

        Subclasses may ignore this setting.

        Parameters:
        bufferSize - the buffer size.
        Returns:
        this.
      • setBufferSize

        public B setBufferSize​(java.lang.Integer bufferSize)
        Sets the buffer size.

        Subclasses may ignore this setting.

        Parameters:
        bufferSize - the buffer size, null resets to the default.
        Returns:
        this.
      • setCharset

        public B setCharset​(java.nio.charset.Charset charset)
        Sets the Charset.

        Subclasses may ignore this setting.

        Parameters:
        charset - the Charset, null resets to the default.
        Returns:
        this.
      • setCharset

        public B setCharset​(java.lang.String charset)
        Sets the Charset.

        Subclasses may ignore this setting.

        Parameters:
        charset - the Charset name, null resets to the default.
        Returns:
        this.