|
|||||||||
| Home >> All >> org >> apache >> batik >> [ parser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.batik.parser
Class FragmentIdentifierParser

java.lang.Objectorg.apache.batik.parser.AbstractParser
org.apache.batik.parser.NumberParser
org.apache.batik.parser.FragmentIdentifierParser
- All Implemented Interfaces:
- org.apache.batik.i18n.Localizable, Parser
- public class FragmentIdentifierParser
- extends NumberParser
This class represents an event-based parser for the SVG fragment identifiers.
- Version:
- $Id: FragmentIdentifierParser.java,v 1.14 2005/03/27 08:58:35 cam Exp $
| 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.NumberParser |
|
| 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 java.lang.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, reportError, setErrorHandler, setLocale |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
buffer
protected char[] buffer
- The buffer used for numbers.
bufferSize
protected int bufferSize
- The buffer size.
fragmentIdentifierHandler
protected FragmentIdentifierHandler fragmentIdentifierHandler
- The FragmentIdentifierHandler.
| Constructor Detail |
FragmentIdentifierParser
public FragmentIdentifierParser()
- Creates a new FragmentIdentifier parser.
| Method Detail |
setFragmentIdentifierHandler
public void setFragmentIdentifierHandler(FragmentIdentifierHandler handler)
- Allows an application to register a fragment identifier 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.
getFragmentIdentifierHandler
public FragmentIdentifierHandler getFragmentIdentifierHandler()
- Returns the points handler in use.
doParse
protected void doParse()
throws ParseException,
java.io.IOException
- Parses the current reader.
- Specified by:
doParsein classAbstractParser
parseViewAttributes
protected void parseViewAttributes()
throws ParseException,
java.io.IOException
- Parses the svgView attributes.
parseIdentifier
protected void parseIdentifier()
throws ParseException,
java.io.IOException
- Parses an identifier.
getBufferContent
protected java.lang.String getBufferContent()
- Returns the content of the buffer.
bufferize
protected void bufferize()
- Adds the current character to the buffer.
skipSpaces
protected void skipSpaces()
throws java.io.IOException
- Skips the whitespaces in the current reader.
- Overrides:
skipSpacesin classAbstractParser
skipCommaSpaces
protected void skipCommaSpaces()
throws java.io.IOException
- Skips the whitespaces and an optional comma.
- Overrides:
skipCommaSpacesin classAbstractParser
parseMatrix
protected void parseMatrix()
throws ParseException,
java.io.IOException
- Parses a matrix transform. 'm' is assumed to be the current character.
parseRotate
protected void parseRotate()
throws ParseException,
java.io.IOException
- Parses a rotate transform. 'r' is assumed to be the current character.
parseTranslate
protected void parseTranslate()
throws ParseException,
java.io.IOException
- Parses a translate transform. 't' is assumed to be
the current character.
parseScale
protected void parseScale()
throws ParseException,
java.io.IOException
- Parses a scale transform. 'c' is assumed to be the current character.
parseSkew
protected void parseSkew()
throws ParseException,
java.io.IOException
- Parses a skew transform. 'e' is assumed to be the current character.
skipTransform
protected void skipTransform()
throws java.io.IOException
- Skips characters in the given reader until a ')' is encountered.
parsePreserveAspectRatio
protected void parsePreserveAspectRatio()
throws ParseException,
java.io.IOException
- Parses a PreserveAspectRatio attribute.
skipIdentifier
protected void skipIdentifier()
throws java.io.IOException
- Skips characters in the given reader until a white space is encountered.
|
|||||||||
| Home >> All >> org >> apache >> batik >> [ parser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC