public static List<String> readLines(InputStream input, Charset encoding) throws IOException {
    """
	Get the contents of an <code>InputStream</code> as a list of Strings,
	one entry per line, using the specified character encoding.
	<p/>
	This method buffers the input internally, so there is no need to use a
	<code>BufferedInputStream</code>.
	
	@param input    the <code>InputStream</code> to read from, not null
	@param encoding the encoding to use, null means platform default
	@return the list of Strings, never null
	@throws NullPointerException if the input is null
	@throws IOException          if an I/O error occurs
	@since 2.3
    """
        InputStreamReader reader = new InputStreamReader(input, Charsets.toCharset(encoding));
        return readLines(reader);
    }
public static List<String> readLines(InputStream input, Charset encoding) throws IOException {
        InputStreamReader reader = new InputStreamReader(input, Charsets.toCharset(encoding));
        return readLines(reader);
    }
public static List < String > readLines ( InputStream input , Charset encoding ) throws IOException { InputStreamReader reader = new InputStreamReader ( input , Charsets . toCharset ( encoding ) ) ; return readLines ( reader ) ; }
Get the contents of an <code>InputStream</code> as a list of Strings,
one entry per line, using the specified character encoding.
<p/>
This method buffers the input internally, so there is no need to use a
<code>BufferedInputStream</code>.

@param input    the <code>InputStream</code> to read from, not null
@param encoding the encoding to use, null means platform default
@return the list of Strings, never null
@throws NullPointerException if the input is null
@throws IOException          if an I/O error occurs
@since 2.3
Get the contents of an <code > InputStream< / code > as a list of Strings one entry per line using the specified character encoding . <p / > This method buffers the input internally so there is no need to use a <code > BufferedInputStream< / code > .