Package adams.core.io

Interface FileObject

    • Method Detail

      • getFile

        File getFile()
        Returns the wrapped file.
        Returns:
        the file
      • getActualFile

        File getActualFile()
        Returns the actual target (if possible) in case of a link.
        Returns:
        the actual file
      • getName

        String getName()
        Returns the file name.
        Returns:
        the name
      • getLength

        long getLength()
        Returns the size of the file.
        Returns:
        the size
      • isDirectory

        boolean isDirectory()
        Returns whether the file represents a directory.
        Returns:
        true if directory
      • getLastModified

        Date getLastModified()
        Returns the date when the file was last modified.
        Returns:
        date when last modified
      • isHidden

        boolean isHidden()
        Returns whether the file is hidden.
        Returns:
        true if hidden
      • isLink

        boolean isLink()
        Returns whether the file represents a link.
        Returns:
        true if link
      • isLocal

        boolean isLocal()
        Returns whether the file is a local file.
        Returns:
        true if local
      • toString

        String toString()
        Returns just the file's string representation.
        Overrides:
        toString in class Object
        Returns:
        the string representation