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 Details

    • Zip

      public Zip()
  • Method Details

    • loaderOf

      public @NonNull Resource.Loader<String> loaderOf(@NonNull @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 @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 file
      filter - non-null filter to avoid copying everything
      Returns:
      a non-null loader
      Throws:
      IOException