|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjpicedt.graphic.io.parser.JPICParser
public class JPICParser
An implementation of the Parser interface dedicated to parsing JPIC-XML files.
How it works : We first try to know if we're parsing a JPIC-XML formatted file, i.e. starting with a "%%Begin JPIC-XML" marker. If this is the case :
Constructor Summary | |
---|---|
JPICParser()
|
Method Summary | |
---|---|
Parser |
getFallbackParser()
Returns the Parser that'll be called when JPIC-XML parsing fails. |
static void |
main(String[] args)
for quick debugging purpose |
Drawing |
parse(Reader reader)
kicks off the parsing process |
void |
setFallbackParser(Parser fallback)
set the Parser that'll be called when JPIC-XML parsing fails. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JPICParser()
Method Detail |
---|
public Drawing parse(Reader reader) throws ParserException
parse
in interface Parser
ParserException
- when a parsing error was encountered, e.g. syntax error, block mismatch,...public static void main(String[] args)
public void setFallbackParser(Parser fallback)
public Parser getFallbackParser()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |