Code example for StringReader

0
    } 
 
    private Node parse(String code) {
        LanguageVersionHandler jspLang = LanguageVersion.JSP.getLanguageVersionHandler();
        Parser parser = jspLang.getParser(jspLang.getDefaultParserOptions());
        Node node = parser.parse(null, new StringReader(code));
        return node;
    } 
} 
Connect your IDE to all the code out there  Get Codota for Java