Package org.goots.exploder
Interface ExploderFileProcessor
-
public interface ExploderFileProcessor
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default StringgetVirtualPath(File baseDir, File target)Return the virtual path from the top level to the target location removing any temporary 'unpacked' markers.voidprocessFile(File baseDir, File file)Perform arbitrary processing upon a standard file after unpacking and decompression.
-
-
-
Method Detail
-
processFile
void processFile(File baseDir, File file) throws InternalException
Perform arbitrary processing upon a standard file after unpacking and decompression.- Parameters:
baseDir- the base temporary folder from which the zip/jar/ear/war/etc was unzippedfile- file to process- Throws:
InternalException- if the processing reports an error. This will abort the unpackEntryPoint/decompress.
-
getVirtualPath
default String getVirtualPath(File baseDir, File target)
Return the virtual path from the top level to the target location removing any temporary 'unpacked' markers. This is not a valid file system path.- Parameters:
baseDir- the top level working directorytarget- the target file- Returns:
- the virtual path string.
-
-