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 DocumentHandler
CSSException
public void endDocument(InputSource source) throws CSSException
endDocument
in interface DocumentHandler
CSSException
public void comment(String text) throws CSSException
comment
in interface DocumentHandler
CSSException
public void ignorableAtRule(String atRule) throws CSSException
ignorableAtRule
in interface DocumentHandler
CSSException
public void ignorableAtRule(String atRule, Locator locator) throws CSSException
DocumentHandlerExt
ignorableAtRule
in interface DocumentHandlerExt
atRule
- 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 DocumentHandler
CSSException
public void importStyle(String uri, SACMediaList media, String defaultNamespaceURI) throws CSSException
importStyle
in interface DocumentHandler
CSSException
public void importStyle(String uri, SACMediaList media, String defaultNamespaceURI, Locator locator) throws CSSException
DocumentHandlerExt
importStyle
in interface DocumentHandlerExt
uri
- 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 DocumentHandler
CSSException
public void startMedia(SACMediaList media, Locator locator) throws CSSException
DocumentHandlerExt
startMedia
in interface DocumentHandlerExt
media
- 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 DocumentHandler
CSSException
public void startPage(String name, String pseudoPage) throws CSSException
startPage
in interface DocumentHandler
CSSException
public void startPage(String name, String pseudoPage, Locator locator) throws CSSException
DocumentHandlerExt
startPage
in interface DocumentHandlerExt
name
- 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 DocumentHandler
CSSException
public void startFontFace() throws CSSException
startFontFace
in interface DocumentHandler
CSSException
public void startFontFace(Locator locator) throws CSSException
DocumentHandlerExt
startFontFace
in interface DocumentHandlerExt
locator
- the SAC locatorCSSException
- Any CSS exception, possibly wrapping another
exception.public void endFontFace() throws CSSException
endFontFace
in interface DocumentHandler
CSSException
public void startSelector(SelectorList selectors) throws CSSException
startSelector
in interface DocumentHandler
CSSException
public void startSelector(SelectorList selectors, Locator locator) throws CSSException
DocumentHandlerExt
startSelector
in interface DocumentHandlerExt
selectors
- 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 DocumentHandler
CSSException
public void property(String name, LexicalUnit value, boolean important) throws CSSException
property
in interface DocumentHandler
CSSException
public void property(String name, LexicalUnit value, boolean important, Locator locator)
DocumentHandlerExt
property
in interface DocumentHandlerExt
name
- 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
DocumentHandlerExt
charset
in interface DocumentHandlerExt
characterEncoding
- the character encodinglocator
- the SAC locatorCSSException
- Any CSS exception, possibly wrapping another
exception.public void warning(CSSParseException exception) throws CSSException
warning
in interface ErrorHandler
CSSException
public void error(CSSParseException exception) throws CSSException
error
in interface ErrorHandler
CSSException
public void fatalError(CSSParseException exception) throws CSSException
fatalError
in interface ErrorHandler
CSSException
Copyright © 1999–2022. All rights reserved.