| 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()
ResourcegetFileName in interface Resourcepublic final InputStream open() throws IOException
ResourceInputStream.open in interface ResourceIOExceptionpublic final long lastModified()
Resource0L if the time of the last
modification cannot be determined.lastModified in interface Resourcepublic final File getFile()
Copyright © 2019. All rights reserved.