Interface AFile

    • Method Detail

      • toPathString

        default String toPathString()
        Description copied from interface: AItem
        The value that uniquely identifies the item globally in the whole file system.

        Note that this value is usually a combination of the identifiers of AItem.parent() directories and the local AItem.identifier(), but such a relation is not mandatory.

        Specified by:
        toPathString in interface AItem
        Returns:
        the item's globally unique identifier.
        See Also:
        AItem.parent(), AItem.identifier()
      • type

        default String type()
        An optional String defining the type of the file's content.

        If such an information makes no sense for a certain file system, this value may be null.

        Returns:
        the file's type.
      • size

        default long size()
        Returns the size in bytes of this file's content, without any space required for file metadata (name etc.).
        Returns:
        the size in bytes of this file's content.
      • isEmpty

        default boolean isEmpty()
      • registerObserver

        boolean registerObserver​(AFile.Observer observer)
      • exists

        default boolean exists()
        Description copied from interface: AItem
        Queries whether the item represented by this instance actually physically exists on the underlying storage layer.
        Specified by:
        exists in interface AItem
        Returns:
        whether the item exists.
      • ensureExists

        default boolean ensureExists()
      • isUsed

        default boolean isUsed()
      • defaultUser

        default Object defaultUser()