Module datarush.gcp

Class GcpFilePath

    • Method Detail

      • getFileSystemProvider

        public FileSystemProvider getFileSystemProvider()
        Description copied from interface: Path
        Gets the file system provider for this path.
        Specified by:
        getFileSystemProvider in interface Path
        Returns:
        the file system provider associated with the path
      • isAbsolute

        public boolean isAbsolute()
        Description copied from interface: Path
        Indicates whether the path is absolute or relative. That is, does the path start from the root of the associated file system.

        For most file systems, all paths are absolute.

        Specified by:
        isAbsolute in interface Path
        Returns:
        true if the path starts from the file system root, false otherwise.
      • toAbsolutePath

        public Path toAbsolutePath()
        Description copied from interface: Path
        Converts a relative path into an absolute path.
        Specified by:
        toAbsolutePath in interface Path
        Returns:
        the absolute path pointing to the same location. If the path is already absolute, it is returned.
      • getParent

        public Path getParent()
        Description copied from interface: Path
        Gets the path referring to the location containing the path.
        Specified by:
        getParent in interface Path
        Returns:
        the path to the container of this path, null if this path is the root.
      • getName

        public String getName()
        Description copied from interface: Path
        Gets the last element of the path.
        Specified by:
        getName in interface Path
        Returns:
        the last element of the path.
      • resolve

        public Path resolve​(String childPath)
        Description copied from interface: Path
        Adds additional elements to the path. The provided string is interpreted as a relative path starting from the path's location.
        Specified by:
        resolve in interface Path
        Parameters:
        childPath - the
        Returns:
        the resulting path
      • toFile

        public File toFile()
        Description copied from interface: Path
        Gets the local file corresponding to the path. This only makes sense when the path refers to the local file system. For other paths, it always returns null.
        Specified by:
        toFile in interface Path
        Returns:
        the file which this path identifies or null if it does not identify a file on the local file system.
      • toString

        public String toString()
        Description copied from interface: Path
        Gets the string representation of the path. It must be true that Paths.asPath(path.toString()) refers to the same location as path. However, it may not the case that pathString.equals(Paths.asPath(pathString).toString()).
        Specified by:
        toString in interface Path
        Overrides:
        toString in class Object
        Returns:
        the string representation of the path
      • toURL

        public String toURL()
        Description copied from interface: Path
        Returns the URL string corresponding to this path.
        Specified by:
        toURL in interface Path
        Returns:
        The URL string for this path, or null if this path cannot be mapped to a URL.