net.kolls.railworld.io
Class TRNReader

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

public class TRNReader
extends java.lang.Object

Reads Yard Duty TRN files to create a train. All information is available except which entrance to use.

Author:
Steve Kollmansberger

Constructor Summary
TRNReader()
           
 
Method Summary
static Train read(java.io.File f)
          Read a train from a Yard Duty train file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TRNReader

public TRNReader()
Method Detail

read

public static Train read(java.io.File f)
                  throws java.io.FileNotFoundException,
                         java.io.IOException
Read a train from a Yard Duty train file

Parameters:
f - The file to read from
Returns:
The train created.
Throws:
java.io.FileNotFoundException
java.io.IOException