Package strategy
Class FileManager
- java.lang.Object
-
- strategy.FileManager
-
- All Implemented Interfaces:
FileHandler
public class FileManager extends java.lang.Object implements FileHandler
Class that contains appropriateFileHandler
and call his methods.
-
-
Field Summary
Fields Modifier and Type Field Description private FileHandler
fileHandler
-
Constructor Summary
Constructors Constructor Description FileManager(FileHandler fileHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
open(java.io.File file)
Call method to ppen forwarded file.void
save(java.io.File file)
Call method to save forwarded file.
-
-
-
Field Detail
-
fileHandler
private FileHandler fileHandler
-
-
Constructor Detail
-
FileManager
public FileManager(FileHandler fileHandler)
-
-
Method Detail
-
save
public void save(java.io.File file)
Call method to save forwarded file.- Specified by:
save
in interfaceFileHandler
-
open
public void open(java.io.File file)
Call method to ppen forwarded file.- Specified by:
open
in interfaceFileHandler
-
-