net.simplace.sim.io.FileData




public class FileData extends java.io.File {
// Public Constructors
public FileData(String aPathname, FWSimSession aActiveInSession, String
aDivider, String aProjectID);
public FileData(String aPathname, FWSimSession aActiveInSession);


// Public Instance Methods
public void setCache(FileData aFileData, boolean aWasUpdated);

public String[][] getDataCache(Integer[] aLinesToRead, Integer
aSkipHeaderLines) throws IOException;

If filename has changed or accessed for the first time the lines of the file are read from file system. If not they are just returned without reading again.
returns Vector of lines in the file in the given order
public Element getRootElement() throws IOException;

If filename has changed or accessed for the first time the root element of the file are read from file system. If not it is just returned without reading again.
returns root element from xml file
public void writeStringsToFile(Collection aCollection);

writes all strings to a file with given divider as one new line to the end of the opened file.
public void writeObjectsToFile(Collection aCollection, LinkedHashMap
aHeaderVariables);

writes all objects to a file with given divider as one new line to the end of the opened file. For a null object the String "NULL" is written or 12.2363452 ==> 12.24
  • aCollection
  • aHeaderVariables
public void writeToFile(String aLine);

writes all strings to a file with given divider as one new line to the end of the opened file.
public FWSimSession getSession();


returns the activeInSession
public void closeFile();

closes the file at the end of the writing or reading process. reset is called resetting the writer.
public void setUpdated(boolean aIsUpdated);

public boolean isUpdated();

public String getUniqueID();

public boolean equals(Object obj); // Overrides java.io.File

public String toString(); // Overrides java.io.File



}



Hierarchy: java.lang.Object - java.io.File (java.io.Serializable, java.lang.Comparable) - FileData



Passed to: FilePoolManager.add(), net.simplace.sim.FWSimSession(), net.simplace.sim.FWSimSession(), net.simplace.sim.io.resources.adapter.XMLResourceAdapter.getData(), net.simplace.sim.io.resources.adapter.NetCDFResourceAdapter.getData(), net.simplace.sim.io.resources.adapter.CSVResourceAdapter.getData(), FilePoolManager.getFile(), net.simplace.sim.control.FWSimulationController.initProjectData(), net.simplace.sim.FWSimEngine.prepareSession(), FilePoolManager.remove(), setCache()



Returned by: FilePoolManager.getFile(), net.simplace.sim.FWSimSession.getProjectFile(), net.simplace.sim.FWSimSession.getSolutionFile(), FilePool.registerFile()