Package org.apache.batik.parser
Interface Parser
-
- All Superinterfaces:
Localizable
- All Known Implementing Classes:
AbstractParser,AngleParser,ClockParser,FragmentIdentifierParser,LengthListParser,LengthPairListParser,LengthParser,NumberListParser,NumberParser,PathParser,PointsParser,PreserveAspectRatioParser,TimingParser,TimingSpecifierListParser,TimingSpecifierParser,TransformListParser
public interface Parser extends Localizable
This interface represents a parser.- Version:
- $Id: Parser.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidparse(java.io.Reader r)Parses the given readervoidparse(java.lang.String s)Parses the given stringvoidsetErrorHandler(ErrorHandler handler)Allows an application to register an error event handler.-
Methods inherited from interface org.apache.batik.i18n.Localizable
formatMessage, getLocale, setLocale
-
-
-
-
Method Detail
-
parse
void parse(java.io.Reader r) throws ParseExceptionParses the given reader- Throws:
ParseException
-
parse
void parse(java.lang.String s) throws ParseExceptionParses the given string- Throws:
ParseException
-
setErrorHandler
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.
-
-