public abstract class TimingParser extends AbstractParser
Modifier and Type | Field and Description |
---|---|
protected static int |
TIME_ACCESSKEY |
protected static int |
TIME_ACCESSKEY_SVG12 |
protected static int |
TIME_EVENTBASE |
protected static int |
TIME_INDEFINITE |
protected static int |
TIME_MEDIA_MARKER |
protected static int |
TIME_OFFSET |
protected static int |
TIME_REPEAT |
protected static int |
TIME_SYNCBASE |
protected static int |
TIME_WALLCLOCK |
protected boolean |
useSVG11AccessKeys
Allows the use of accessKey() timing specifiers with a single
character, as specified in SVG 1.1.
|
protected boolean |
useSVG12AccessKeys
Allows the use of accessKey() timing specifiers with a DOM 3
key name, as specified in SVG 1.2.
|
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader
Constructor and Description |
---|
TimingParser(boolean useSVG11AccessKeys,
boolean useSVG12AccessKeys)
Creates a new TimingParser.
|
Modifier and Type | Method and Description |
---|---|
protected float |
parseClockValue()
Parses a clock value.
|
protected int |
parseDigits()
Parses a sequence of digits and returns the integer.
|
protected float |
parseFraction()
Parses a '.' and a sequence of digits and returns the float.
|
protected java.lang.Object[] |
parseIDValue(boolean escaped)
Parses a timing specifier that starts with a word.
|
protected java.lang.String |
parseName()
Parses an XML name with optional escaping in the middle.
|
protected float |
parseOffset()
Parses an offset value.
|
protected java.lang.Object[] |
parseTimingSpecifier()
Parses a timing specifier.
|
protected float |
parseUnit()
Parses a time unit and returns the float for the multiplier.
|
protected java.util.Calendar |
parseWallclockValue()
Parses a wallclock value and returns it as a
Calendar . |
createErrorMessage, doParse, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces
protected static final int TIME_OFFSET
protected static final int TIME_SYNCBASE
protected static final int TIME_EVENTBASE
protected static final int TIME_REPEAT
protected static final int TIME_ACCESSKEY
protected static final int TIME_ACCESSKEY_SVG12
protected static final int TIME_MEDIA_MARKER
protected static final int TIME_WALLCLOCK
protected static final int TIME_INDEFINITE
protected boolean useSVG11AccessKeys
protected boolean useSVG12AccessKeys
public TimingParser(boolean useSVG11AccessKeys, boolean useSVG12AccessKeys)
useSVG11AccessKeys
- allows the use of accessKey() timing
specifiers with a single characteruseSVG12AccessKeys
- allows the use of accessKey() with a
DOM 3 key nameprotected java.lang.Object[] parseTimingSpecifier() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected java.lang.String parseName() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected java.lang.Object[] parseIDValue(boolean escaped) throws ParseException, java.io.IOException
escaped
- whether a backslash appeared before this timing specifierParseException
java.io.IOException
protected float parseClockValue() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected float parseOffset() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected int parseDigits() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected float parseFraction() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected float parseUnit() throws ParseException, java.io.IOException
ParseException
java.io.IOException
protected java.util.Calendar parseWallclockValue() throws ParseException, java.io.IOException
Calendar
.ParseException
java.io.IOException
Copyright © 2022 Apache Software Foundation. All Rights Reserved.