Interface Path

    • Method Detail

      • local

        static LocalPath local​(FileSystem fs,
                               java.io.File path)
        Create a Path representation of the given local file.
        Parameters:
        fs - local filesystem
        path - the local file
        Returns:
        Path representation of this local file
      • read

        default java.nio.channels.ReadableByteChannel read()
                                                    throws java.io.IOException
        Open readable byte channel from a given Path.
        Returns:
        ReadableByteChannel of the Path.
        Throws:
        java.io.IOException - on errors
      • reader

        @Deprecated
        java.io.InputStream reader()
                            throws java.io.IOException
        Deprecated.
        Use read() instead.
        Open input stream from given Path.
        Returns:
        InputStream of the Path.
        Throws:
        java.io.IOException - on errors
      • write

        default java.nio.channels.WritableByteChannel write()
                                                     throws java.io.IOException
        Open writeable byte channel to a given Path.
        Returns:
        WritableByteChannel of the Path.
        Throws:
        java.io.IOException - on errors
      • writer

        @Deprecated
        java.io.OutputStream writer()
                             throws java.io.IOException
        Deprecated.
        Use write() instead.
        Open output stream to the Path.
        Returns:
        OutputStream of the Path
        Throws:
        java.io.IOException - on errors *
      • delete

        void delete()
             throws java.io.IOException
        Delete this Path.
        Throws:
        java.io.IOException - on errors