예제 #1
0
 public CSSRule parseRule(InputSource source) throws IOException {
   CSSOMHandler handler = new CSSOMHandler();
   _parser.setDocumentHandler(handler);
   _parser.parseRule(source);
   return (CSSRule) handler.getRoot();
 }
예제 #2
0
 public CSSStyleSheet parseStyleSheet(InputSource source) throws IOException {
   CSSOMHandler handler = new CSSOMHandler();
   _parser.setDocumentHandler(handler);
   _parser.parseStyleSheet(source);
   return (CSSStyleSheet) handler.getRoot();
 }