public class NestedJarHandler extends Object implements AutoCloseable
Constructor and Description |
---|
NestedJarHandler(boolean removeTemporaryFilesAfterScan,
InterruptionChecker interruptionChecker,
LogNode log) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Delete temporary files and release other resources.
|
File |
getInnermostNestedJar(String nestedJarPath)
Get a File for a given (possibly nested) jarfile path, unzipping the first N-1 segments of an N-segment
'!'-delimited path to temporary files, then returning the File reference for the N-th temporary file.
|
Recycler<ZipFile,IOException> |
getZipFileRecycler(String canonicalPath)
Get a ZipFile recycler given the (non-nested) canonical path of a jarfile.
|
File |
unzipToTempFile(ZipFile zipFile,
ZipEntry zipEntry)
Unzip a ZipEntry to a temporary file, then return the temporary file.
|
public NestedJarHandler(boolean removeTemporaryFilesAfterScan, InterruptionChecker interruptionChecker, LogNode log)
public Recycler<ZipFile,IOException> getZipFileRecycler(String canonicalPath) throws Exception
Exception
public File getInnermostNestedJar(String nestedJarPath) throws Exception
Exception
public File unzipToTempFile(ZipFile zipFile, ZipEntry zipEntry) throws IOException
IOException
public void close()
close
in interface AutoCloseable
Copyright © 2017. All rights reserved.