Interface ResourceInfo

All Superinterfaces:
Comparable<ResourceInfo>
All Known Subinterfaces:
Resource, ResourceCollection

public interface ResourceInfo extends Comparable<ResourceInfo>
Abstraction for resource information.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this resource exists.
    Gets the canonical path of this resource.
    Gets the name of this resource.
    Gets the path of this resource.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • exists

      boolean exists()
      Checks if this resource exists.
      Returns:
      true if resource exists
    • getName

      String getName()
      Gets the name of this resource.
      Returns:
      File name (without path)
    • getPath

      String getPath()
      Gets the path of this resource.
      Returns:
      Full path for file
    • getCanonicalPath

      String getCanonicalPath()
      Gets the canonical path of this resource.
      Returns:
      Canonical path for file that is absolute and unique.