|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kolls.railworld.io.XMLReader
public class XMLReader
Reads RWM files in the XML format.
| Nested Class Summary | |
|---|---|
protected static class |
XMLReader.XMLHandler
The workhorse. |
| Constructor Summary | |
|---|---|
XMLReader()
|
|
| Method Summary | |
|---|---|
static RailSegment[] |
read(java.io.File f,
MetaData toBeFilled)
Reads from an RWM file and returns the rail segments. |
static RailSegment[] |
read(java.net.URL f,
MetaData toBeFilled)
Reads from an RWM file and returns the rail segments. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLReader()
| Method Detail |
|---|
public static RailSegment[] read(java.net.URL f,
MetaData toBeFilled)
throws org.xml.sax.SAXException,
java.io.IOException
f - URL of the RWM filetoBeFilled - An instance of MetaData to fill.
RailSegment representing all segments.
org.xml.sax.SAXException - If the parser encounters an error.
java.io.IOException - If the URL cannot be read.
public static RailSegment[] read(java.io.File f,
MetaData toBeFilled)
throws org.xml.sax.SAXException,
java.io.IOException
f - File of the RWM filetoBeFilled - An instance of MetaData to fill.
RailSegment representing all segments.
org.xml.sax.SAXException - If the parser encounters an error.
java.io.IOException - If the URL cannot be read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||