net.simplace.sim.io.FilePool
Has to be finalized before quitting the application
Reads from file system, out of zip-file and from class path or normal file access.
Can be used to efficiently access XML-files via Element (getRootElement) or CSV-Files via (getLinesOfFiles)
UpdateFileName will reset the caches only if the file name was changed in between. Read {updateFileName(String, FWSimVarMap)
for more information.
The data will be cached for a second use. For memory optimization make sure to finalize the object accordingly
public class FilePool {
// Public Constructors
public FilePool(String aFileName, FWSimSession aCurrentSession, String
aDivider, int aPoolSize, FWSimVariable.CONTENT_TYPE aContent_Type);
// Public Instance Methods public void finalize(); // Overrides java.lang.Object
closes the file if content type is out and there is no more access to the file
public String toString(); // Overrides java.lang.Object
public boolean isInitialized();
returns check if Fileinfo is readily usable
}
Passed to: FilePoolManager.getFile()
Returned by: net.simplace.sim.io.interfaces.NetCDFInterface.getInterface(), net.simplace.sim.io.interfaces.FILEInterface.getInterface(), net.simplace.sim.io.interfaces.CSVInterface.getInterface()
Type of: net.simplace.sim.io.interfaces.FILEInterface.iFileinfo