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