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;
    } 
}