类 ZipFiles

java.lang.Object
org.apache.pulsar.io.file.utils.ZipFiles

public class ZipFiles extends Object
Helper class that provides helper methods for working with zip-formatted files.
  • 构造器详细资料

    • ZipFiles

      public ZipFiles()
  • 方法详细资料

    • isZip

      public static boolean isZip(File f)
      Returns true if the given file is a gzip file.
    • lines

      public static Stream<String> lines(Path path)
      Get a lazily loaded stream of lines from a gzipped file, similar to Files.lines(java.nio.file.Path).
      参数:
      path - The path to the zipped file.
      返回:
      stream with lines.