Localizable, Parserpublic class PreserveAspectRatioParser extends AbstractParser
| Modifier and Type | Field | Description |
|---|---|---|
protected PreserveAspectRatioHandler |
preserveAspectRatioHandler |
The PreserveAspectRatio handler used to report parse events.
|
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader| Constructor | Description |
|---|---|
PreserveAspectRatioParser() |
Creates a new PreserveAspectRatioParser.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doParse() |
Parses the current stream.
|
PreserveAspectRatioHandler |
getPreserveAspectRatioHandler() |
Returns the length handler in use.
|
protected void |
parsePreserveAspectRatio() |
Parses a PreserveAspectRatio attribute.
|
void |
setPreserveAspectRatioHandler(PreserveAspectRatioHandler handler) |
Allows an application to register a PreserveAspectRatioParser handler.
|
protected void |
skipIdentifier() |
Skips characters in the given reader until a white space is encountered.
|
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpacesprotected PreserveAspectRatioHandler preserveAspectRatioHandler
public PreserveAspectRatioParser()
public void setPreserveAspectRatioHandler(PreserveAspectRatioHandler handler)
If the application does not register a handler, all events reported by the parser will be silently ignored.
Applications may register a new or different handler in the middle of a parse, and the parser must begin using the new handler immediately.
handler - The transform list handler.public PreserveAspectRatioHandler getPreserveAspectRatioHandler()
protected void doParse()
throws ParseException,
java.io.IOException
doParse in class AbstractParserParseExceptionjava.io.IOExceptionprotected void parsePreserveAspectRatio()
throws ParseException,
java.io.IOException
ParseExceptionjava.io.IOExceptionprotected void skipIdentifier()
throws java.io.IOException
java.io.IOExceptionCopyright ? 2018 Apache Software Foundation. All Rights Reserved.