|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectTrackFileParser
Class TrackFileParser reads and parses a track file
(../tracks/*.track) from the disk and creates a new Track object
based on it.
This class is used by calling the parseTrack (String filename)
method, which returns a Track object if successful.
Track| Constructor Summary | |
TrackFileParser()
Default constructor. |
|
| Method Summary | |
Track |
parseTrack(java.lang.String filename)
The actual creation of a Track object. |
private java.util.Vector |
readFile(java.io.File file)
The track file is first read in a vector. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TrackFileParser()
| Method Detail |
private java.util.Vector readFile(java.io.File file)
In this phase, the comment lines are removed.
file - track filepublic Track parseTrack(java.lang.String filename)
Track object.
filename - Name of the track file in relation to the working
directory (e.g. "../tracks/default.track").
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||