|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jpicedt.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 | |
---|---|
static ParsedDrawing |
extractAndParse(CodedContentExtraction extractor,
Parser parser,
Reader reader)
|
ParsedDrawing |
extractAndParse(Reader reader)
kicks off the parsing process |
static void |
main(String[] args)
for quick debugging purpose |
Drawing |
parse(Reader reader)
Fourni pour compatibilité ascendante. |
void |
parse(Reader reader,
ParsedDrawing parsedDrawing)
Analyse du dessin codé seulement, l'extraction a déjà été faite par l'appelant. |
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 ParsedDrawing extractAndParse(Reader reader) throws ParserException
extractAndParse
in interface ExtractionParsing
ParserException
- when a parsing error was encountered, e.g. syntax error, block mismatch,...public void parse(Reader reader, ParsedDrawing parsedDrawing) throws ParserException
parse
in interface Parser
parsedDrawing
- valeur retournée d'une nouvelle instance de dessin
(Drawing
) peuplée des éléments instanciée lors de l'analyse du dessin
codé lu à partir du reader
.
ParserException
- en cas d'erreur lors de l'analyse syntaxique.public Drawing parse(Reader reader) throws ParserException
parse(Reader
reader,ParsedDrawing parsedDrawing)
.
parse
in interface Parser
Drawing
peuplé des objets graphiques résultant des
l'analyse des données lues par le reader
passé en argument.
ParserException
public static void main(String[] args)
public static ParsedDrawing extractAndParse(CodedContentExtraction extractor, Parser parser, Reader reader) throws ParserException
ParserException
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |