net.kolls.railworld.io
Class RWMWriter

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

public class RWMWriter
extends java.lang.Object

Writes a Rail World map as an XML file in the RWM format.

Author:
Steve Kollmansberger

Constructor Summary
RWMWriter()
           
 
Method Summary
static void write(RailSegment[] la, MetaData md, java.io.File f)
          Saves rail segments and associated metadata in the RWM format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RWMWriter

public RWMWriter()
Method Detail

write

public static void write(RailSegment[] la,
                         MetaData md,
                         java.io.File f)
                  throws javax.xml.transform.TransformerException,
                         javax.xml.parsers.ParserConfigurationException
Saves rail segments and associated metadata 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.