Package org.apache.pulsar.common.nar
Class NarUnpacker
- java.lang.Object
-
- org.apache.pulsar.common.nar.NarUnpacker
-
public class NarUnpacker extends java.lang.ObjectHelper class to unpack NARs.
-
-
Constructor Summary
Constructors Constructor Description NarUnpacker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.FileunpackNar(java.io.File nar, java.io.File baseWorkingDirectory)Unpacks the specified nar into the specified base working directory.
-
-
-
Method Detail
-
unpackNar
public static java.io.File unpackNar(java.io.File nar, java.io.File baseWorkingDirectory) throws java.io.IOExceptionUnpacks the specified nar into the specified base working directory.- Parameters:
nar- the nar to unpackbaseWorkingDirectory- the directory to unpack to- Returns:
- the directory to the unpacked NAR
- Throws:
java.io.IOException- if unable to explode nar
-
-