Exemple #1
0
 public void parseStyleDeclaration(CSSStyleDeclaration sd, InputSource source) throws IOException {
   Stack nodeStack = new Stack();
   nodeStack.push(sd);
   CSSOMHandler handler = new CSSOMHandler(nodeStack);
   _parser.setDocumentHandler(handler);
   _parser.parseStyleDeclaration(source);
 }
Exemple #2
0
 public CSSRule parseRule(InputSource source) throws IOException {
   CSSOMHandler handler = new CSSOMHandler();
   _parser.setDocumentHandler(handler);
   _parser.parseRule(source);
   return (CSSRule) handler.getRoot();
 }
Exemple #3
0
 public CSSValue parsePropertyValue(InputSource source) throws IOException {
   CSSOMHandler handler = new CSSOMHandler();
   _parser.setDocumentHandler(handler);
   return new CSSValueImpl(_parser.parsePropertyValue(source));
 }
Exemple #4
0
 public CSSStyleSheet parseStyleSheet(InputSource source) throws IOException {
   CSSOMHandler handler = new CSSOMHandler();
   _parser.setDocumentHandler(handler);
   _parser.parseStyleSheet(source);
   return (CSSStyleSheet) handler.getRoot();
 }
Exemple #5
0
 public SelectorList parseSelectors(InputSource source) throws IOException {
   HandlerBase handler = new HandlerBase();
   _parser.setDocumentHandler(handler);
   return _parser.parseSelectors(source);
 }