Package nbbrd.io.zip
Class Zip
java.lang.Object
nbbrd.io.zip.Zip
Set of utilities related to ZIP.
- Author:
- Philippe Charles
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NonNull Resource.Loader<String> loaderCopyOf(@NonNull InputStream inputStream, @NonNull IOPredicate<? super ZipEntry> filter) Creates a new loader by copying the content of a zip file.@NonNull Resource.Loader<String> Creates a new loader from a zip file.
-
Constructor Details
-
Zip
public Zip()
-
-
Method Details
-
loaderOf
Creates a new loader from a zip file.- Parameters:
file- non-null zip file- Returns:
- a non-null loader
- Throws:
IOException
-
loaderCopyOf
public @NonNull Resource.Loader<String> loaderCopyOf(@NonNull @NonNull InputStream inputStream, @NonNull @NonNull IOPredicate<? super ZipEntry> filter) throws IOException Creates a new loader by copying the content of a zip file.- Parameters:
inputStream- non-null content of zip filefilter- non-null filter to avoid copying everything- Returns:
- a non-null loader
- Throws:
IOException
-