Package net.simplace.sim.io
Klasse 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.
- Autor:
- Andreas Enders
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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
-
Konstruktordetails
-
FilePoolManager
public FilePoolManager()
-
-
Methodendetails
-
getFile
creates new FileInfo as a pool of files- Parameter:
aFileData-- Gibt zurück:
- the requested FileData
-
remove
creates new FileInfo as a pool of files- Parameter:
aFileData-
-
add
creates new FileInfo as a pool of files- Parameter:
aSession-aFileData-
-
finalize
creates new FileInfo as a pool of files- Parameter:
aSession-
-