public class HandlerBase extends Object implements DocumentHandler, CSSErrorHandler
| Constructor and Description |
|---|
HandlerBase() |
| Modifier and Type | Method and Description |
|---|---|
void |
charset(String characterEncoding,
Locator locator)
Receive notification of a charset at-rule.
|
void |
endDocument(InputSource source)
Receive notification of the end of a document.
|
void |
endFontFace()
Receive notification of the end of a font face statement.
|
void |
endMedia(MediaQueryList media)
Receive notification of the end of a media statement.
|
void |
endPage(String name,
String pseudoPage)
Receive notification of the end of a media statement.
|
void |
endSelector(SelectorList selectors)
Receive notification of the end of a rule statement.
|
void |
error(CSSParseException exception)
Error.
|
void |
fatalError(CSSParseException exception)
Fatal error.
|
void |
ignorableAtRule(String atRule,
Locator locator)
Receive notification of an unknown rule t-rule not supported by this
parser.
|
void |
importStyle(String uri,
MediaQueryList media,
String defaultNamespaceURI,
Locator locator)
Receive notification of a import statement in the style sheet.
|
void |
property(String name,
LexicalUnit value,
boolean important,
Locator locator)
Receive notification of a declaration.
|
void |
startDocument(InputSource source)
Receive notification of the beginning of a style sheet.
|
void |
startFontFace(Locator locator)
Receive notification of the beginning of a font face statement.
|
void |
startMedia(MediaQueryList media,
Locator locator)
Receive notification of the beginning of a media statement.
|
void |
startPage(String name,
String pseudoPage,
Locator locator)
Receive notification of the beginning of a page statement.
|
void |
startSelector(SelectorList selectors,
Locator locator)
Receive notification of the beginning of a rule statement.
|
void |
warning(CSSParseException exception)
Warning.
|
public void startDocument(InputSource source) throws CSSException
DocumentHandlerstartDocument in interface DocumentHandlersource - the input source to parseCSSException - Any CSS exception, possibly wrapping another
exception.public void endDocument(InputSource source) throws CSSException
DocumentHandlerendDocument in interface DocumentHandlersource - the input source to parseCSSException - Any CSS exception, possibly wrapping another
exception.public void ignorableAtRule(String atRule, Locator locator) throws CSSException
DocumentHandlerignorableAtRule in interface DocumentHandleratRule - The complete ignored at-rule.locator - the locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void importStyle(String uri, MediaQueryList media, String defaultNamespaceURI, Locator locator) throws CSSException
DocumentHandlerimportStyle in interface DocumentHandleruri - 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 locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void startMedia(MediaQueryList media, Locator locator) throws CSSException
DocumentHandlerstartMedia in interface DocumentHandlermedia - The intended destination media for style information.locator - the locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void endMedia(MediaQueryList media) throws CSSException
DocumentHandlerendMedia in interface DocumentHandlermedia - The intended destination media for style information.CSSException - Any CSS exception, possibly wrapping another
exception.public void startPage(String name, String pseudoPage, Locator locator) throws CSSException
DocumentHandlerstartPage in interface DocumentHandlername - the name of the page (if any, null otherwise)pseudoPage - the pseudo page (if any, null otherwise)locator - the locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void endPage(String name, String pseudoPage) throws CSSException
DocumentHandlerendPage in interface DocumentHandlername - the namepseudoPage - the pseudo page (if any, null otherwise)CSSException - Any CSS exception, possibly wrapping another
exception.public void startFontFace(Locator locator) throws CSSException
DocumentHandlerstartFontFace in interface DocumentHandlerlocator - the locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void endFontFace()
throws CSSException
DocumentHandlerendFontFace in interface DocumentHandlerCSSException - Any CSS exception, possibly wrapping another
exception.public void startSelector(SelectorList selectors, Locator locator) throws CSSException
DocumentHandlerstartSelector in interface DocumentHandlerselectors - All intended selectors for all declarations.locator - the locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void endSelector(SelectorList selectors) throws CSSException
DocumentHandlerendSelector in interface DocumentHandlerselectors - All intended selectors for all declarations.CSSException - Any CSS exception, possibly wrapping another
exception.public void property(String name, LexicalUnit value, boolean important, Locator locator)
DocumentHandlerproperty in interface DocumentHandlername - the name of the property.value - the value of the property. All whitespace are stripped.important - is this property important ?locator - the locatorpublic void charset(String characterEncoding, Locator locator) throws CSSException
DocumentHandlercharset in interface DocumentHandlercharacterEncoding - the character encodinglocator - the locatorCSSException - Any CSS exception, possibly wrapping another
exception.public void warning(CSSParseException exception) throws CSSException
CSSErrorHandlerwarning in interface CSSErrorHandlerexception - the CSSParseException that is the reason for the warning.CSSException - in case of errorpublic void error(CSSParseException exception) throws CSSException
CSSErrorHandlererror in interface CSSErrorHandlerexception - the CSSParseException that is the reason for the error.CSSException - in case of errorpublic void fatalError(CSSParseException exception) throws CSSException
CSSErrorHandlerfatalError in interface CSSErrorHandlerexception - the CSSParseException that is the reason for the error.CSSException - in case of errorCopyright © 2018. All rights reserved.