Constructor and Description |
---|
FileResource(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile() |
java.lang.String |
getFileName()
Returns a decorative "file name" that can be used for reporting
errors and the like.
|
long |
lastModified()
Returns the time of the last modification, in milliseconds since
1970, or
0L if the time of the last modification cannot
be determined. |
java.io.InputStream |
open()
Opens the resource.
|
java.lang.String |
toString() |
public final java.lang.String getFileName()
Resource
getFileName
in interface Resource
public final java.io.InputStream open() throws java.io.IOException
Resource
InputStream
.public final long lastModified()
Resource
0L
if the time of the last modification cannot
be determined.lastModified
in interface Resource
public final java.io.File getFile()
public final java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2012. All Rights Reserved.