类 GZipFiles

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

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

    • GZipFiles

      public GZipFiles()
  • 方法详细资料

    • isGzip

      public static boolean isGzip(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 gzipped file.
      返回:
      stream with lines.