예제 #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);
 }
예제 #2
0
 public CSSRule parseRule(InputSource source) throws IOException {
   CSSOMHandler handler = new CSSOMHandler();
   _parser.setDocumentHandler(handler);
   _parser.parseRule(source);
   return (CSSRule) handler.getRoot();
 }
예제 #3
0
 public CSSValue parsePropertyValue(InputSource source) throws IOException {
   CSSOMHandler handler = new CSSOMHandler();
   _parser.setDocumentHandler(handler);
   return new CSSValueImpl(_parser.parsePropertyValue(source));
 }
예제 #4
0
 public CSSStyleSheet parseStyleSheet(InputSource source) throws IOException {
   CSSOMHandler handler = new CSSOMHandler();
   _parser.setDocumentHandler(handler);
   _parser.parseStyleSheet(source);
   return (CSSStyleSheet) handler.getRoot();
 }
예제 #5
0
 public SelectorList parseSelectors(InputSource source) throws IOException {
   HandlerBase handler = new HandlerBase();
   _parser.setDocumentHandler(handler);
   return _parser.parseSelectors(source);
 }