Class InputStreamStringBuilder

    • Constructor Detail

      • InputStreamStringBuilder

        public InputStreamStringBuilder()
    • Method Detail

      • getEncoding

        public String getEncoding()
        Specified by:
        getEncoding in interface org.refcodes.mixin.EncodingAccessor<String>
      • setEncoding

        public void setEncoding​(String aEncoding)
        Specified by:
        setEncoding in interface org.refcodes.mixin.EncodingAccessor.EncodingMutator<String>
      • getInputStream

        public InputStream getInputStream()
        Specified by:
        getInputStream in interface org.refcodes.mixin.InputStreamAccessor
      • setInputStream

        public void setInputStream​(InputStream aInputStream)
        Specified by:
        setInputStream in interface org.refcodes.mixin.InputStreamAccessor.InputStreamMutator
      • toString

        public String toString​(String aEncoding)
                        throws IOException
        The Strings being build by the builder upon the settings of the attributes.
        Parameters:
        aEncoding - The text encoding to be used.
        Returns:
        The according resulting String array
        Throws:
        IOException - thrown in case accessing the InputStream caused faults.
      • toStrings

        public String[] toStrings()
                           throws IOException
        The Strings being build by the builder upon the settings of the attributes.
        Returns:
        The according resulting String array
        Throws:
        IOException - thrown in case accessing the InputStream caused faults.
      • toStrings

        public String[] toStrings​(String aEncoding)
                           throws IOException
        The Strings being build by the builder upon the settings of the attributes.
        Parameters:
        aEncoding - The text encoding to be used.
        Returns:
        The according resulting String array
        Throws:
        IOException - thrown in case accessing the InputStream caused faults.
      • toStrings

        public String[] toStrings​(InputStream aInputStream,
                                  String aEncoding)
                           throws IOException
        The Strings being build by the builder upon the settings of the attributes.
        Parameters:
        aInputStream - The InputStream which to convert into a String array.
        aEncoding - The text encoding to be used.
        Returns:
        The according resulting String array
        Throws:
        IOException - thrown in case accessing the InputStream caused faults.