Package patterntesting.runtime.io
Class Resource
- java.lang.Object
-
- patterntesting.runtime.io.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.
-
-
-
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 classjava.lang.Object
- Returns:
- the string
- See Also:
Object.toString()
-
-