public class CSSOMParser extends Object
| Constructor and Description |
|---|
CSSOMParser()
Creates new CSSOMParser
|
CSSOMParser(Parser parser)
Creates new CSSOMParser
|
CSSOMParser(short version)
Creates new CSSOMParser.
|
| Modifier and Type | Method and Description |
|---|---|
protected CSSStyleSheetImpl |
getParentStyleSheet() |
static SACParser |
newParser() |
static SACParser |
newParser(short version) |
SACMediaList |
parseMedia(InputSource source) |
org.w3c.dom.css.CSSValue |
parsePropertyValue(InputSource source) |
org.w3c.dom.css.CSSRule |
parseRule(InputSource source) |
SelectorList |
parseSelectors(InputSource source) |
void |
parseStyleDeclaration(org.w3c.dom.css.CSSStyleDeclaration sd,
InputSource source) |
org.w3c.dom.css.CSSStyleDeclaration |
parseStyleDeclaration(InputSource source)
Parses a SAC input source into a CSSOM style declaration.
|
org.w3c.dom.css.CSSStyleSheet |
parseStyleSheet(InputSource source,
Node ownerNode,
String href)
Parses a SAC input source into a CSSOM style sheet.
|
void |
setErrorHandler(ErrorHandler eh) |
void |
setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet) |
public CSSOMParser()
public CSSOMParser(Parser parser)
parser - the underlying parserpublic CSSOMParser(short version)
version - the versionpublic static SACParser newParser()
public static SACParser newParser(short version)
public void setErrorHandler(ErrorHandler eh)
public org.w3c.dom.css.CSSStyleSheet parseStyleSheet(InputSource source, Node ownerNode, String href) throws IOException
source - the SAC input sourceownerNode - the owner node (see the definition of ownerNode in org.w3c.dom.css.StyleSheet)href - the href (see the definition of href in org.w3c.dom.css.StyleSheet)IOException - if the underlying SAC parser throws an IOExceptionpublic org.w3c.dom.css.CSSStyleDeclaration parseStyleDeclaration(InputSource source) throws IOException
source - the SAC input sourceIOException - if the underlying SAC parser throws an IOExceptionpublic void parseStyleDeclaration(org.w3c.dom.css.CSSStyleDeclaration sd, InputSource source) throws IOException
IOExceptionpublic org.w3c.dom.css.CSSValue parsePropertyValue(InputSource source) throws IOException
IOExceptionpublic org.w3c.dom.css.CSSRule parseRule(InputSource source) throws IOException
IOExceptionpublic SelectorList parseSelectors(InputSource source) throws IOException
IOExceptionpublic SACMediaList parseMedia(InputSource source) throws IOException
IOExceptionpublic void setParentStyleSheet(CSSStyleSheetImpl parentStyleSheet)
protected CSSStyleSheetImpl getParentStyleSheet()
Copyright © 2026. All rights reserved.