use of org.w3c.css.sac.InputSource in project onebusaway-application-modules by camsys.
the class CssResourceTransformationStrategy method parse.
/**
***************************************************************************
* Private Methods
***************************************************************************
*/
private String parse(ResourceService resourceService, URL url) throws IOException {
InputStreamReader reader2 = new InputStreamReader(url.openStream());
InputSource source2 = new InputSource(reader2);
Parser p = new SACParserCSS2();
CssDocumentHandler handler = new CssDocumentHandler(resourceService, _locale);
p.setDocumentHandler(handler);
p.parseStyleSheet(source2);
reader2.close();
return handler.getResults();
}
Aggregations