Klasse FilePool

java.lang.Object
net.simplace.sim.io.FilePool

public class FilePool extends Object
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
Autor:
Andreas Enders
  • Konstruktordetails

  • Methodendetails

    • registerFile

      public FileData registerFile(FWSimVarMap aVarMap)
      Parameter:
      aVarMap -
      Gibt zurück:
      the registered file data
    • getContentType

      public FWSimVariable.CONTENT_TYPE getContentType()
      Gibt zurück:
      type of content from FWSimVariable.CONTENT_TYPE
    • finalize

      public void finalize()
      closes the file if content type is out and there is no more access to the file
      Setzt außer Kraft:
      finalize in Klasse Object
    • toString

      public String toString()
      Setzt außer Kraft:
      toString in Klasse Object
      Siehe auch:
    • isInitialized

      public boolean isInitialized()
      Gibt zurück:
      check if Fileinfo is readily usable