aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils
diff options
context:
space:
mode:
Diffstat (limited to 'pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils')
-rw-r--r--pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/TempFileHelper.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/TempFileHelper.java b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/TempFileHelper.java
index 3a9284cc..0a1c0c1a 100644
--- a/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/TempFileHelper.java
+++ b/pdf-as-common/src/main/java/at/gv/egiz/pdfas/common/utils/TempFileHelper.java
@@ -70,7 +70,7 @@ public class TempFileHelper implements IProfileConstants {
needsDeletion = true;
}
- logger.info("TempDirHelper for TempDirectory: " + tmpDir);
+ logger.debug("TempDirHelper for TempDirectory: " + tmpDir);
createTmpDir();
}
@@ -81,6 +81,10 @@ public class TempFileHelper implements IProfileConstants {
super.finalize();
}
+ public void clear() {
+ this.deleteTmpDir();
+ }
+
private void deleteTmpDir() {
try {
File tmpdir = new File(tmpDir);
@@ -133,7 +137,7 @@ public class TempFileHelper implements IProfileConstants {
String uuidString = UUID.randomUUID().toString();
logger.debug("Generated UUID " + uuidString);
String tmpFilename = tmpDir + getHashedHexString(uuidString) + tmpFileSuffix;
- logger.info("Temporary filename " + tmpFilename);
+ logger.debug("Temporary filename " + tmpFilename);
tmpFiles.add(tmpFilename);
return tmpFilename;
}