net.simplace.simulation.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 FileData registerFile(FWSimVarMap aVarMap);


returns the registered file data
public FWSimVariable.CONTENT_TYPE getContentType();


returns type of content from {@link CONTENT_TYPE}
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.simulation.io.interfaces.FILEInterface.getInterface(), net.simplace.simulation.io.interfaces.CSVInterface.getInterface()



Type of: net.simplace.simulation.io.interfaces.FILEInterface.iFileinfo