Interface ProjectImportTemporaryFiles

All Known Implementing Classes:
ProjectImportTemporaryFilesImpl

public interface ProjectImportTemporaryFiles
Single class to handle IO for the Temporary XML partition files.
Since:
v3.13
  • Method Details

    • getParentDirectory

      File getParentDirectory()
      Returns the temporary directory which is the parent of all the temporary partition files.
      Returns:
      the temporary directory which is the parent of all the temporary partition files.
    • getEntityXmlFile

      File getEntityXmlFile(String entity)
      Returns the temporary XML partition file an entity.
      Returns:
      the temporary XML partition file an entity.
    • getWriter

      PrintWriter getWriter(String entity) throws IOException
      Returns a writer capable of writing to an entity file.
      Parameters:
      entity - the entity being written
      Returns:
      the writer to use to write that entity
      Throws:
      IOException - if the file cannot be opened for writing
    • getEncoding

      String getEncoding()
      Queries the encoding being used by any print writers opened by getWriter(String).
      Returns:
      the encoding being used
    • closeWriters

      void closeWriters()
      Closes writers opened with getWriter(String). Must be called once writers are no longer needed.
    • deleteTempFiles

      void deleteTempFiles()
      Deletes the temporary files held in this object. It is safe to call this method twice as it will check if the files actually exist first.