Class FileResource

    • Constructor Detail

      • FileResource

        public FileResource​(File file)
    • Method Detail

      • getFileName

        public final String getFileName()
        Description copied from interface: Resource
        Returns a decorative "file name" that can be used for reporting errors and the like. It does not necessarily map to a file in the local file system!
        Specified by:
        getFileName in interface Resource
      • lastModified

        public final long lastModified()
        Description copied from interface: Resource
        Returns the time of the last modification, in milliseconds since 1970, or 0L if the time of the last modification cannot be determined.
        Specified by:
        lastModified in interface Resource
      • getFile

        public final File getFile()
        Returns:
        The file containing the contents of this resource