|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectarchive.system.FileSystem
public class FileSystem
Una classe che si occupa della lettura e scrittura su file.
Implementa l'interfaccia FileExport.
L'Archivio ritornato dal metodo read() viene costruito insieme a
tutte le sue componenti e memorizzato in AgenziaSystem
| Constructor Summary | |
|---|---|
FileSystem()
|
|
FileSystem(java.lang.String path)
|
|
| Method Summary | |
|---|---|
void |
exportPrenPacchetti(java.lang.String path)
Implementa il metodo dell'interfaccia FileExport |
void |
exportPrenVoli(java.lang.String path)
Implementa il metodo dell'interfaccia FileExport |
Archivio |
read()
Questo metodo legge segmenti di file, quando il tipo di informazioni cambia, manda a switchState l'ultimo segmento letto con informazioni sul tipo |
void |
write(java.lang.String path)
Scrive l'archivio su file Implementa il metodo dell'interfaccia FileExport |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystem()
public FileSystem(java.lang.String path)
throws java.io.FileNotFoundException
java.io.FileNotFoundException| Method Detail |
|---|
public Archivio read()
throws java.io.FileNotFoundException
switchState l'ultimo segmento letto con informazioni sul tipo
java.io.FileNotFoundException
public void write(java.lang.String path)
throws java.io.FileNotFoundException
FileExport
write in interface FileExportpath - percorso del file
java.io.FileNotFoundException
public void exportPrenPacchetti(java.lang.String path)
throws java.io.FileNotFoundException
FileExport
exportPrenPacchetti in interface FileExportpath - percorso del file per l'esportazione pacchetti
java.io.FileNotFoundException - percorso invalido
public void exportPrenVoli(java.lang.String path)
throws java.io.FileNotFoundException
FileExport
exportPrenVoli in interface FileExportpath - percorso del file
java.io.FileNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||