Get the contents of an InputStream as a String using the default character encoding of the platform.
InputStream
This method buffers the input internally, so there is no need to use a BufferedInputStream.
BufferedInputStream
the requested String
the InputStream to read from
Get the contents of an InputStream as a String using the specified character encoding.
Character encoding names can be found at IANA.
the encoding to use, null means platform default
Get the contents of a Reader as a String.
Reader
This method buffers the input internally, so there is no need to use a BufferedReader.
BufferedReader
the Reader to read from
Get the contents of a byte[] as a String using the default character encoding of the platform.
byte[]
Use String
the byte array to read from
Get the contents of a byte[] as a String using the specified character encoding.