fr.inria.oadymppac.io
Interface FileManager

All Known Implementing Classes:
GenericTraceFileManager

public interface FileManager

This interface encapsulates the general services on file generally performed by an application

Author:
raf

Field Summary
static java.io.File DEFAULT_FOLDER
          DEFAULT_FOLDER Where to find data files
 
Method Summary
 void loadFile(java.io.File file)
          reading a file
 void saveFile(java.io.File file)
          Write a file on the disk
 java.io.File selectFile()
          Selecting a file
 

Field Detail

DEFAULT_FOLDER

public static final java.io.File DEFAULT_FOLDER
DEFAULT_FOLDER Where to find data files

Method Detail

loadFile

public void loadFile(java.io.File file)
              throws java.lang.Exception
reading a file

Parameters:
file - the filte to read
Throws:
java.lang.Exception - execptions thrown during the file reading (I/O, Parsing ,...)

saveFile

public void saveFile(java.io.File file)
Write a file on the disk

Parameters:
file - The file to write

selectFile

public java.io.File selectFile()
Selecting a file

Returns:
the selected file