Parse a delimited text file
Parsed values are stored at an internal array in this CSVParser.xmlFile
.
@throws ParserConfigurationException
@throws SAXException
@throws IOException
xmlFile
.
xmlFile
.
@throws ParserConfigurationException When a serious parser configuration problem occurs.
@throws SAXException When a problem parsing the XML file occurs.
@throws IOException When an I/O error occurs.
If you have an absolute pathname, rather than calling this method, you may want to try:
CompositeActor toplevel = (CompositeActor) parser.parse(null, new File(xmlFilename).toURL());
Note that this method attempts to read the user.dir system property, which is not generally available in applets. Hence it is probably not a good idea to use this method in applet code, since it will probably fail outright.
If the file has already been parsed, then return the model that previously parsed. Note that this means that an application that opens and then closes a model and expects to re-parse the XML when re-opening should call purgeModelRecord() when closing it. @param filename The file name from which to read MoML. @return The top-level composite entity of the Ptolemy II model. @exception Exception If the parser fails. @exception SecurityException If the user.dir system property isnot available. @see #purgeModelRecord(String) @see #purgeAllModelRecords()
|
|