org.apache.batik.parser
Interface Parser
- All Superinterfaces:
- Localizable
- All Known Subinterfaces:
- ClockParser
- All Known Implementing Classes:
- AbstractParser
- public interface Parser
- extends Localizable
This interface represents a parser.
Method Summary |
void |
parse(java.io.Reader r)
Parses the given reader representing an angle. |
void |
setErrorHandler(ErrorHandler handler)
Allows an application to register an error event handler. |
parse
public void parse(java.io.Reader r)
throws ParseException
- Parses the given reader representing an angle.
setErrorHandler
public void setErrorHandler(ErrorHandler handler)
- Allows an application to register an error event handler.
If the application does not register an error event handler,
all error events reported by the parser will cause an exception
to be thrown.
Applications may register a new or different handler in the
middle of a parse, and the parser must begin using the new
handler immediately.
- Parameters:
handler
- The error handler.
Copyright © 2001 Apache Software Foundation. All Rights Reserved.