Class PathUtil

java.lang.Object
io.deephaven.engine.util.PathUtil

public class PathUtil extends Object
  • Constructor Details

    • PathUtil

      public PathUtil()
  • Method Details

    • open

      public static InputStream open(Path path) throws IOException
      Opens a file, returning an input stream. Paths that end in ".tar.zip", ".tar.bz2", ".tar.gz", ".tar.7z", ".tar.zst", ".zip", ".bz2", ".gz", ".7z", ".zst", or ".tar" will have appropriate decompression applied. The returned stream may or may not be buffered.
      Parameters:
      path - the path
      Returns:
      the input stream, potentially decompressed
      Throws:
      IOException - if an I/O exception occurs
      See Also: