question: public static InputStream toInputStream ( String input , Charset encoding ) { return new ByteArrayInputStream ( input . getBytes ( Charsets . toCharset ( encoding ) ) ) ; }
target:  Convert the specified string to an input stream, encoded as bytes using the specified character encoding.