Class Resource


  • public class Resource
    extends java.lang.Object
    A resource can be a file, an entry in a jar, tar or zip file or a resource in the classpath.
    Since:
    1.6 (05.01.2016)
    Version:
    $Revision: 1.7 $
    Author:
    oliver
    • Constructor Summary

      Constructors 
      Constructor Description
      Resource​(java.net.URI uri)
      Instantiates a new resource.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getModificationDate()
      Gets the modification date of the resource.
      java.lang.String toString()
      To string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Resource

        public Resource​(java.net.URI uri)
        Instantiates a new resource.
        Parameters:
        uri - the uri
    • Method Detail

      • getModificationDate

        public java.util.Date getModificationDate()
                                           throws java.io.IOException
        Gets the modification date of the resource.
        Returns:
        the modification date
        Throws:
        java.io.IOException - Signals that an I/O exception has occurred.
      • toString

        public java.lang.String toString()
        To string.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the string
        See Also:
        Object.toString()