public void setTemporaryFileDirectory(File tempFileDir) {
        this.tempFileDir = tempFileDir == null ? null : tempFileDir.toPath();
    }
Sets the directory to be used for the temporary files created by
the {@link #createTempFile(String)} method.

@param tempFileDir temporary file directory,
                   or <code>null</code> for the system default
@see #setTemporaryFileDirectory(Path)
tika-core/src/main/java/org/apache/tika/io/TemporaryResources.java