Package net.simplace.sim.io
Class FilePoolManager
java.lang.Object
net.simplace.sim.io.FilePoolManager
Organizes the file access and blocks and frees the file streams
Does some exception handling for the programmer
Implemented as a singleton
results in a check that each file is only opened once and closed after use.
- Author:
- Andreas Enders
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidadd(FWSimSession aSession, FileData aFileData) creates new FileInfo as a pool of filesstatic voidfinalize(FWSimSession aSession) creates new FileInfo as a pool of filesstatic FileDatacreates new FileInfo as a pool of filesstatic voidcreates new FileInfo as a pool of files
-
Constructor Details
-
FilePoolManager
public FilePoolManager()
-
-
Method Details
-
getFile
creates new FileInfo as a pool of files- Parameters:
aFileData-- Returns:
- the requested FileData
-
remove
creates new FileInfo as a pool of files- Parameters:
aFileData-
-
add
creates new FileInfo as a pool of files- Parameters:
aSession-aFileData-
-
finalize
creates new FileInfo as a pool of files- Parameters:
aSession-
-