Code example for StringReader

   * @param xmlString a string representation of an XML document 
   * @return an {@code AndroidManifestReader} for the XML document 
   * @throws IOException 
  public static AndroidManifestReader forString(String xmlString) throws IOException {
    return forReader(new StringReader(xmlString));
  private static AndroidManifestReader forReader(Reader reader) throws IOException {
    return new DefaultAndroidManifestReader(new InputSource(reader));
Connect your IDE to all the code out there  Get Codota for Java