public class TempFileCreator extends java.lang.Object implements Exemptible
Constructor and Description |
---|
TempFileCreator(DataObject fileDataObject,
java.lang.String columnNameForFileName,
java.lang.String columnNameForBinaryData)
Constructs a temporary file creator.
|
Modifier and Type | Method and Description |
---|---|
void |
free()
Releases external resources.
|
java.io.File |
getFile()
Returns the temporary file of the current row of the file data object using the the default temporary-file directory.
|
java.io.File |
getFile(java.lang.String temporaryDirectory)
Returns the temporary file of the current row of the file data object.
|
public TempFileCreator(DataObject fileDataObject, java.lang.String columnNameForFileName, java.lang.String columnNameForBinaryData)
fileDataObject
- the data object of the table containing the binary datacolumnNameForFileName
- the name of the column containing the file namecolumnNameForBinaryData
- the name of the column containing the binary datapublic java.io.File getFile()
public java.io.File getFile(java.lang.String temporaryDirectory)
temporaryDirectory
- a specific temporary directory to be used or null, if the default temporary-file directory should be usedpublic void free()
Exemptible
free
in interface Exemptible
Copyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de