Class URIResource

    • Constructor Detail

      • URIResource

        public URIResource​(URI uri)
        Instantiates a new Uri resource.
        Parameters:
        uri - the uri
    • Method Detail

      • append

        public Resource append​(byte[] byteArray)
                        throws IOException
        Description copied from interface: Resource

        Appends the given byte array content to the resource.

        Parameters:
        byteArray - The content to append
        Returns:
        the resource
        Throws:
        IOException - the io exception
      • exists

        public boolean exists()
        Description copied from interface: Resource
        Exists boolean.
        Returns:
        True if the resource exists, False if the resource does not exist.
      • getChild

        public Resource getChild​(String relativePath)
        Description copied from interface: Resource

        Creates a new Resource that is relative to this resource.

        Parameters:
        relativePath - The relative path for the new resource.
        Returns:
        A new resource that is relative to this resource.
      • getParent

        public Resource getParent()
        Description copied from interface: Resource
        Gets parent.
        Returns:
        The parent resource (directory for file, parent directory for a directory)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object