Package nbbrd.io.zip

Class Zip


  • public class Zip
    extends Object
    Set of utilities related to ZIP.
    Author:
    Philippe Charles
    • Constructor Detail

      • Zip

        public Zip()
    • Method Detail

      • 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 file
        filter - non-null filter to avoid copying everything
        Returns:
        a non-null loader
        Throws:
        IOException