Constructor and Description |
---|
FileResource(File file) |
Modifier and Type | Method and Description |
---|---|
File |
getFile() |
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. |
InputStream |
open()
Opens the resource.
|
String |
toString() |
public FileResource(File file)
public final String getFileName()
Resource
getFileName
in interface Resource
public final InputStream open() throws IOException
Resource
InputStream
.open
in interface Resource
IOException
public final long lastModified()
Resource
0L
if the time of the last modification cannot
be determined.lastModified
in interface Resource
public final File getFile()
Copyright © 2001–2016. All rights reserved.