public class Filer
extends java.lang.Object
| Constructor and Description |
|---|
Filer()
Constructs a new Filer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
load(Timetable t)
Loads data from an XML file into the provided Timetable.
|
void |
readFile(java.io.InputStream input)
Reads XML data from the provided InputStream.
|
void |
save(Timetable t)
Saves data from the provided Timetable to XML.
|
void |
writeFile(java.io.OutputStream output)
Writes an XML file to the provided OutputStream
|
public void save(Timetable t)
t - the Timetable containing the data to be savedpublic void load(Timetable t)
t - the Timetable to load the data intopublic void readFile(java.io.InputStream input)
input - the stream to readpublic void writeFile(java.io.OutputStream output)
output - the stream to write