public class HandlerBase extends Object implements DocumentHandlerExt, ErrorHandler
| Constructor and Description |
|---|
HandlerBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
charset(String characterEncoding,
Locator locator)
Receive notification of a charset at-rule.
|
void |
comment(String text) |
void |
endDocument(InputSource source) |
void |
endFontFace() |
void |
endMedia(SACMediaList media) |
void |
endPage(String name,
String pseudoPage) |
void |
endSelector(SelectorList selectors) |
void |
error(CSSParseException exception) |
void |
fatalError(CSSParseException exception) |
void |
ignorableAtRule(String atRule) |
void |
ignorableAtRule(String atRule,
Locator locator)
Receive notification of an unknown rule t-rule not supported by this
parser.
|
void |
importStyle(String uri,
SACMediaList media,
String defaultNamespaceURI) |
void |
importStyle(String uri,
SACMediaList media,
String defaultNamespaceURI,
Locator locator)
Receive notification of a import statement in the style sheet.
|
void |
namespaceDeclaration(String prefix,
String uri) |
void |
property(String name,
LexicalUnit value,
boolean important) |
void |
property(String name,
LexicalUnit value,
boolean important,
Locator locator)
Receive notification of a declaration.
|
void |
startDocument(InputSource source) |
void |
startFontFace() |
void |
startFontFace(Locator locator)
Receive notification of the beginning of a font face statement.
|
void |
startMedia(SACMediaList media) |
void |
startMedia(SACMediaList media,
Locator locator)
Receive notification of the beginning of a media statement.
|
void |
startPage(String name,
String pseudoPage) |
void |
startPage(String name,
String pseudoPage,
Locator locator)
Receive notification of the beginning of a page statement.
|
void |
startSelector(SelectorList selectors) |
void |
startSelector(SelectorList selectors,
Locator locator)
Receive notification of the beginning of a rule statement.
|
void |
warning(CSSParseException exception) |
public void startDocument(InputSource source) throws CSSException
startDocument in interface DocumentHandlerCSSExceptionpublic void endDocument(InputSource source) throws CSSException
endDocument in interface DocumentHandlerCSSExceptionpublic void comment(String text) throws CSSException
comment in interface DocumentHandlerCSSExceptionpublic void ignorableAtRule(String atRule) throws CSSException
ignorableAtRule in interface DocumentHandlerCSSExceptionpublic void ignorableAtRule(String atRule, Locator locator) throws CSSException
DocumentHandlerExtignorableAtRule in interface DocumentHandlerExtatRule - The complete ignored at-rule.locator - the SAC locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void namespaceDeclaration(String prefix, String uri) throws CSSException
namespaceDeclaration in interface DocumentHandlerCSSExceptionpublic void importStyle(String uri, SACMediaList media, String defaultNamespaceURI) throws CSSException
importStyle in interface DocumentHandlerCSSExceptionpublic void importStyle(String uri, SACMediaList media, String defaultNamespaceURI, Locator locator) throws CSSException
DocumentHandlerExtimportStyle in interface DocumentHandlerExturi - The URI of the imported style sheet.media - The intended destination media for style information.defaultNamespaceURI - The default namespace URI for the imported
style sheet.locator - the SAC locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void startMedia(SACMediaList media) throws CSSException
startMedia in interface DocumentHandlerCSSExceptionpublic void startMedia(SACMediaList media, Locator locator) throws CSSException
DocumentHandlerExtstartMedia in interface DocumentHandlerExtmedia - The intended destination media for style information.locator - the SAC locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void endMedia(SACMediaList media) throws CSSException
endMedia in interface DocumentHandlerCSSExceptionpublic void startPage(String name, String pseudoPage) throws CSSException
startPage in interface DocumentHandlerCSSExceptionpublic void startPage(String name, String pseudoPage, Locator locator) throws CSSException
DocumentHandlerExtstartPage in interface DocumentHandlerExtname - the name of the page (if any, null otherwise)pseudoPage - the pseudo page (if any, null otherwise)locator - the SAC locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void endPage(String name, String pseudoPage) throws CSSException
endPage in interface DocumentHandlerCSSExceptionpublic void startFontFace()
throws CSSException
startFontFace in interface DocumentHandlerCSSExceptionpublic void startFontFace(Locator locator) throws CSSException
DocumentHandlerExtstartFontFace in interface DocumentHandlerExtlocator - the SAC locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void endFontFace()
throws CSSException
endFontFace in interface DocumentHandlerCSSExceptionpublic void startSelector(SelectorList selectors) throws CSSException
startSelector in interface DocumentHandlerCSSExceptionpublic void startSelector(SelectorList selectors, Locator locator) throws CSSException
DocumentHandlerExtstartSelector in interface DocumentHandlerExtselectors - All intended selectors for all declarations.locator - the SAC locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void endSelector(SelectorList selectors) throws CSSException
endSelector in interface DocumentHandlerCSSExceptionpublic void property(String name, LexicalUnit value, boolean important) throws CSSException
property in interface DocumentHandlerCSSExceptionpublic void property(String name, LexicalUnit value, boolean important, Locator locator)
DocumentHandlerExtproperty in interface DocumentHandlerExtname - the name of the property.value - the value of the property. All whitespace are stripped.important - is this property important ?locator - the SAC locatorpublic void charset(String characterEncoding, Locator locator) throws CSSException
DocumentHandlerExtcharset in interface DocumentHandlerExtcharacterEncoding - the character encodinglocator - the SAC locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void warning(CSSParseException exception) throws CSSException
warning in interface ErrorHandlerCSSExceptionpublic void error(CSSParseException exception) throws CSSException
error in interface ErrorHandlerCSSExceptionpublic void fatalError(CSSParseException exception) throws CSSException
fatalError in interface ErrorHandlerCSSExceptionCopyright © 1999–2022. All rights reserved.