net.simplace.simulation.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);
public String[][]
getDataCache(Integer[] aLinesToRead) 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
aLinkedHashMap);
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
- aLinkedHashMap
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
}
Hierarchy: java.lang.Object - java.io.File (java.io.Serializable, java.lang.Comparable) - FileData
Passed to: net.simplace.simulation.io.resources.adapter.XMLResourceAdapter.getData(), net.simplace.simulation.io.resources.adapter.CSVResourceAdapter.getData(), FilePoolManager.remove(), setCache()
Returned by: FilePoolManager.getFile(), FilePool.registerFile()