Package nbbrd.io.zip
Class Zip
- java.lang.Object
-
- nbbrd.io.zip.Zip
-
public class Zip extends Object
Set of utilities related to ZIP.- Author:
- Philippe Charles
-
-
Constructor Summary
Constructors Constructor Description Zip()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @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>loaderOf(@NonNull File file)Creates a new loader from a zip file.
-
-
-
Method Detail
-
loaderOf
public @NonNull Resource.Loader<String> loaderOf(@NonNull File file) throws IOException
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 InputStream inputStream, @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
-
-