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 Summary
Modifier and TypeMethodDescriptionvoid
Closes writers opened withgetWriter(String)
.void
Deletes the temporary files held in this object.Queries the encoding being used by any print writers opened bygetWriter(String)
.getEntityXmlFile
(String entity) Returns the temporary XML partition file an entity.Returns the temporary directory which is the parent of all the temporary partition files.Returns a writer capable of writing to an entity file.
-
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
Returns the temporary XML partition file an entity.- Returns:
- the temporary XML partition file an entity.
-
getWriter
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 bygetWriter(String)
.- Returns:
- the encoding being used
-
closeWriters
void closeWriters()Closes writers opened withgetWriter(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.
-