Class LocalFile

    • Constructor Detail

      • LocalFile

        public LocalFile()
    • Method Detail

      • asFile

        public File asFile()
        Attempt to create a java.io.File from the local URI. If it doesn't look like a URI, it is just treated as a path.
        Returns:
        instance of File
        See Also:
        asFile()
      • canRead

        public Boolean canRead()
      • canWrite

        public Boolean canWrite()
      • setId

        public void setId​(Long id)
      • getLocalURL

        public URI getLocalURL()
        Returns:
        The location of the file on a local server
      • setLocalURL

        public void setLocalURL​(URI localURL)
      • getRemoteURL

        public URI getRemoteURL()
        Returns:
        Source where the file was downloaded from.
      • setRemoteURL

        public void setRemoteURL​(URI remoteURL)
      • getSize

        public Long getSize()
      • setSize

        public void setSize​(Long size)
      • getVersion

        public String getVersion()
        Returns:
        The version identifier for the file; this could be as simple as the date of creation
      • setVersion

        public void setVersion​(String version)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object