fr.inria.oadymppac.io
Class GenericTraceFileManager

java.lang.Object
  extended byfr.inria.oadymppac.io.GenericTraceFileManager
All Implemented Interfaces:
FileManager

public class GenericTraceFileManager
extends java.lang.Object
implements FileManager

A Concrete implementation of a file manager for the application

Author:
raf

Field Summary
 
Fields inherited from interface fr.inria.oadymppac.io.FileManager
DEFAULT_FOLDER
 
Constructor Summary
GenericTraceFileManager(Properties application)
          Defaulmt constructor
 
Method Summary
 void loadFile(java.io.File file)
          Load a file
 void saveFile(java.io.File file)
          Write a file on the disk
 java.io.File selectFile()
          Select a file using the JFileChooser
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericTraceFileManager

public GenericTraceFileManager(Properties application)
Defaulmt constructor

Parameters:
application - : the properties shared with the application
Method Detail

selectFile

public java.io.File selectFile()
Select a file using the JFileChooser

Specified by:
selectFile in interface FileManager
Returns:
the selected file
See Also:
FileManager.selectFile()

loadFile

public void loadFile(java.io.File file)
Load a file

Specified by:
loadFile in interface FileManager
Parameters:
file - the filte to read
See Also:
FileManager.loadFile(java.io.File)

saveFile

public void saveFile(java.io.File file)
Description copied from interface: FileManager
Write a file on the disk

Specified by:
saveFile in interface FileManager
Parameters:
file - The file to write