Package io.github.astrapi69.zip
Class UnZipper.UnzipperBuilder
java.lang.Object
io.github.astrapi69.zip.UnZipper.UnzipperBuilder
- Enclosing class:
- UnZipper
Builder class for constructing `Unzipper` objects.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs a new `Unzipper` object based on the current builder state.Sets the target directory for the `Unzipper` object being built.toString()
Returns a string representation of the `UnzipperBuilder` object, showing its current target directory and zip file.Sets the zip file for the `Unzipper` object being built.
-
Method Details
-
build
Constructs a new `Unzipper` object based on the current builder state.- Returns:
- a new `Unzipper` object
-
toDir
Sets the target directory for the `Unzipper` object being built.- Parameters:
toDir
- the directory to set as the target for extraction- Returns:
- the current `UnzipperBuilder` instance
-
zipFile
Sets the zip file for the `Unzipper` object being built.- Parameters:
zipFile
- the zip file to set for extraction- Returns:
- the current `UnzipperBuilder` instance
-
toString
Returns a string representation of the `UnzipperBuilder` object, showing its current target directory and zip file.
-