Skip to content

Commit 2a754d7

Browse files
committed
FileExtractor#initialize(int): log memory initialization for external routines of file streams
1 parent bb00290 commit 2a754d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snaploader/src/main/java/electrostatic4j/snaploader/filesystem/FileExtractor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434

3535
import electrostatic4j.snaploader.throwable.FilesystemResourceInitializationException;
3636
import electrostatic4j.snaploader.util.SnapLoaderLogger;
37-
3837
import java.io.*;
3938
import java.util.logging.Level;
4039

@@ -72,9 +71,8 @@ public class FileExtractor implements OutputStreamProvider {
7271
*
7372
* @param fileLocator locates a filesystem inside a zip compression
7473
* @param destination an absolute filesystem path representing the extraction destination filesystem
75-
* @throws FileNotFoundException if the destination filesystem path is not found
7674
*/
77-
public FileExtractor(FileLocator fileLocator, String destination) throws FileNotFoundException {
75+
public FileExtractor(FileLocator fileLocator, String destination) {
7876
this.fileLocator = fileLocator;
7977
this.destination = destination;
8078
}
@@ -90,6 +88,8 @@ public void initialize(int size) throws Exception {
9088
// 1) sanity-check for double initializing
9189
// 2) sanity-check for pre-initialization using other routines
9290
if (this.fileOutputStream != null) {
91+
SnapLoaderLogger.log(Level.INFO, getClass().getName(), "initialize(int)",
92+
"File extractor already initialized using external routines with hash key #" + getHashKey());
9393
return;
9494
}
9595
try {

0 commit comments

Comments
 (0)