net.kolls.railworld.io
Class XMLWriter

java.lang.Object
  extended by net.kolls.railworld.io.XMLWriter

public class XMLWriter
extends java.lang.Object

Writes an XML file in the RWM format.

Author:
Steve Kollmansberger

Constructor Summary
XMLWriter()
           
 
Method Summary
static void write(RailSegment[] la, MetaData md, java.io.File f)
          Writes an XML file in the RWM format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWriter

public XMLWriter()
Method Detail

write

public static void write(RailSegment[] la,
                         MetaData md,
                         java.io.File f)
                  throws javax.xml.transform.TransformerException,
                         javax.xml.parsers.ParserConfigurationException
Writes an XML file in the RWM format.

Parameters:
la - Array of rail segments.
md - MetaData to write.
f - File to write to.
Throws:
javax.xml.transform.TransformerException - If the file cannot be written.
javax.xml.parsers.ParserConfigurationException - If the XML DOM builder breaks.