Java – Convert String to InputStream

Converting String to InputStream in Java