|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.parser.AbstractParser
org.apache.batik.parser.NumberParser
org.apache.batik.parser.FragmentIdentifierParser
public class FragmentIdentifierParser
This class represents an event-based parser for the SVG fragment identifiers.
Field Summary | |
---|---|
protected char[] |
buffer
The buffer used for numbers. |
protected int |
bufferSize
The buffer size. |
protected FragmentIdentifierHandler |
fragmentIdentifierHandler
The FragmentIdentifierHandler. |
Fields inherited from class org.apache.batik.parser.AbstractParser |
---|
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader |
Constructor Summary | |
---|---|
FragmentIdentifierParser()
Creates a new FragmentIdentifier parser. |
Method Summary | |
---|---|
protected void |
bufferize()
Adds the current character to the buffer. |
protected void |
doParse()
Parses the current reader. |
protected String |
getBufferContent()
Returns the content of the buffer. |
FragmentIdentifierHandler |
getFragmentIdentifierHandler()
Returns the points handler in use. |
protected void |
parseIdentifier()
Parses an identifier. |
protected void |
parseMatrix()
Parses a matrix transform. |
protected void |
parsePreserveAspectRatio()
Parses a PreserveAspectRatio attribute. |
protected void |
parseRotate()
Parses a rotate transform. |
protected void |
parseScale()
Parses a scale transform. |
protected void |
parseSkew()
Parses a skew transform. |
protected void |
parseTranslate()
Parses a translate transform. |
protected void |
parseViewAttributes()
Parses the svgView attributes. |
void |
setFragmentIdentifierHandler(FragmentIdentifierHandler handler)
Allows an application to register a fragment identifier handler. |
protected void |
skipCommaSpaces()
Skips the whitespaces and an optional comma. |
protected void |
skipIdentifier()
Skips characters in the given reader until a white space is encountered. |
protected void |
skipSpaces()
Skips the whitespaces in the current reader. |
protected void |
skipTransform()
Skips characters in the given reader until a ')' is encountered. |
Methods inherited from class org.apache.batik.parser.NumberParser |
---|
buildFloat, parseFloat |
Methods inherited from class org.apache.batik.parser.AbstractParser |
---|
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected char[] buffer
protected int bufferSize
protected FragmentIdentifierHandler fragmentIdentifierHandler
Constructor Detail |
---|
public FragmentIdentifierParser()
Method Detail |
---|
public void setFragmentIdentifierHandler(FragmentIdentifierHandler 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 FragmentIdentifierHandler getFragmentIdentifierHandler()
protected void doParse() throws ParseException, IOException
doParse
in class AbstractParser
ParseException
IOException
protected void parseViewAttributes() throws ParseException, IOException
ParseException
IOException
protected void parseIdentifier() throws ParseException, IOException
ParseException
IOException
protected String getBufferContent()
protected void bufferize()
protected void skipSpaces() throws IOException
skipSpaces
in class AbstractParser
IOException
protected void skipCommaSpaces() throws IOException
skipCommaSpaces
in class AbstractParser
IOException
protected void parseMatrix() throws ParseException, IOException
ParseException
IOException
protected void parseRotate() throws ParseException, IOException
ParseException
IOException
protected void parseTranslate() throws ParseException, IOException
ParseException
IOException
protected void parseScale() throws ParseException, IOException
ParseException
IOException
protected void parseSkew() throws ParseException, IOException
ParseException
IOException
protected void skipTransform() throws IOException
IOException
protected void parsePreserveAspectRatio() throws ParseException, IOException
ParseException
IOException
protected void skipIdentifier() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |