Use a StringReader instead of a FileInputStream.
See the documentation for StringReader
example:
InputSource inputSource = new InputSource( new StringReader( myString ) );
Use a StringReader instead of a FileInputStream.
See the documentation for StringReader
example:
InputSource inputSource = new InputSource( new StringReader( myString ) );