public class CSSParserFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CSSParserFactory.SourceType
Encapsulates functionality associated with different source types.
|
| Modifier and Type | Method and Description |
|---|---|
static StyleSheet |
append(Object source,
String encoding,
CSSParserFactory.SourceType type,
Element inline,
boolean inlinePriority,
StyleSheet sheet,
URL base)
Appends parsed source to passed style sheet.
|
static StyleSheet |
append(Object source,
String encoding,
CSSParserFactory.SourceType type,
StyleSheet sheet,
URL base)
Appends parsed source to passed style sheet.
|
static StyleSheet |
parse(Object source,
String encoding,
CSSParserFactory.SourceType type,
Element inline,
boolean inlinePriority,
URL base)
Parses source of given type
|
static StyleSheet |
parse(Object source,
String encoding,
CSSParserFactory.SourceType type,
URL base)
Parses source of given type.
|
static void |
resetPriority()
Resets the rule priority to the initial state (completely new parsing)
|
public static StyleSheet parse(Object source, String encoding, CSSParserFactory.SourceType type, Element inline, boolean inlinePriority, URL base) throws IOException, CSSException
source - Source, interpretation depends on typetype - Type of source providedinline - InlineElementinlinePriority - True when the rule should have an 'inline' (greater) priorityIOException - When problem with input stream occursCSSException - When unrecoverable exception during parsing occurspublic static StyleSheet parse(Object source, String encoding, CSSParserFactory.SourceType type, URL base) throws IOException, CSSException
source - Source, interpretation depends on typetype - Type of source providedbase - The base URLIOException - When problem with input stream occursCSSException - When unrecoverable exception during parsing occursIllegalArgumentException - When type of source is INLINEpublic static StyleSheet append(Object source, String encoding, CSSParserFactory.SourceType type, Element inline, boolean inlinePriority, StyleSheet sheet, URL base) throws IOException, CSSException
source - Source, interpretation depends on typetype - Type of source providedinline - Inline elementinlinePriority - True when the rule should have an 'inline' (greater) prioritysheet - StyleSheet to be modifiedIOException - When problem with input stream occursCSSException - When unrecoverable exception during parsing occurspublic static StyleSheet append(Object source, String encoding, CSSParserFactory.SourceType type, StyleSheet sheet, URL base) throws IOException, CSSException
source - Source, interpretation depends on typetype - Type of source providedbase - Base urlsheet - StyleSheet to be modifiedIOException - When problem with input stream occursCSSException - When unrecoverable exception during parsing occursIllegalArgumentException - When type of source is INLINEpublic static void resetPriority()
Copyright © 2014. All rights reserved.