All Packages Class Hierarchy This Package Previous Next Index
Class org.w3c.css.css.StyleSheetXMLParser
java.lang.Object
|
+----org.w3c.css.css.StyleSheetXMLParser
- public class StyleSheetXMLParser
- extends Object
- implements CssValidatorListener, CssParser
-
StyleSheetXMLParser()
-
-
getStyleSheet()
-
-
handleAtRule(String, String)
- Handles an at-rule.
-
handleRule(CssSelectors, Vector)
- Adds a vector of properties to a selector.
-
notifyErrors(Errors)
-
-
notifyWarnings(Warnings)
-
-
parseStyleAttribute(InputStream, String, URL, int)
- Parse some declarations
-
parseStyleAttribute(String, String, URL, int)
-
Deprecated.
-
parseStyleElement(InputStream, URL, int)
-
-
parseStyleElement(String, URL, int)
-
Deprecated.
-
parseURL(URL, int)
-
-
reInit()
-
StyleSheetXMLParser
public StyleSheetXMLParser()
reInit
public void reInit()
getStyleSheet
public StyleSheet getStyleSheet()
notifyErrors
public void notifyErrors(Errors errors)
notifyWarnings
public void notifyWarnings(Warnings warnings)
handleRule
public void handleRule(CssSelectors selector,
Vector declarations)
- Adds a vector of properties to a selector.
- Parameters:
- selector - the selector
- declarations - Properties to associate with contexts
handleAtRule
public void handleAtRule(String ident,
String string)
- Handles an at-rule.
The parameter value can be :
- CssString
- The value coming from a string.
- CssURL
- The value coming from an URL.
- Vector
- The value is a vector of declarations (it contains properties).
This feature is not legal, so be careful.
- Parameters:
- ident - The ident for this at-rule (for example: 'font-face')
- string - The string representation of this at-rule
parseURL
public void parseURL(URL url,
int origin)
- Parameters:
- url - the URL containing the style sheet
- origin - the origin of the style sheet
- Throws: IOException
- an IO error
parseStyleElement
public void parseStyleElement(InputStream input,
URL url,
int lineno)
- Parameters:
- input - the inputStream containing the style data
- url - the name of the file the style element was read in.
- Throws: IOException
- an IO error
parseStyleElement
public void parseStyleElement(String input,
URL url,
int lineno)
- Note: parseStyleElement() is deprecated.
Replaced by parseStyleElement
- Parameters:
- input - the inputStream containing the style data
- url - the name of the file the style element was read in.
- Throws: IOException
- an IO error
- See Also:
- parseStyleElement
parseStyleAttribute
public void parseStyleAttribute(InputStream input,
String id,
URL url,
int lineno)
- Parse some declarations
- Parameters:
- input - the inputStream containing the style data
- filename - the name of the file the style element was read in.
- Throws: IOException
- an IO error
parseStyleAttribute
public void parseStyleAttribute(String input,
String id,
URL url,
int lineno)
- Note: parseStyleAttribute() is deprecated.
Replaced by parseStyleAttribute
- Parameters:
- input - the inputStream containing the style data
- id - the uniq id
- url - the name of the file the style element was read in.
- Throws: IOException
- an IO error
- See Also:
- parseStyleAttribute
All Packages Class Hierarchy This Package Previous Next Index