question: public static InputStream toInputStream ( CharSequence input , Charset encoding ) { return toInputStream ( input . toString ( ) , encoding ) ; }
target:  Convert the specified CharSequence to an input stream, encoded as bytes using the specified character encoding.