java.io.File .
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final File | |
| public final String | getFileName()
Implements org. |
| public URL | |
| public final long | lastModified()
Implements org. 0L if the time of the last
modification cannot be determined.
|
| public final InputStream | |
| public final String |
| file | back to summary |
|---|---|
| private final File file | |
| FileResource | back to summary |
|---|---|
| public FileResource(File file) | |
| getFile | back to summary |
|---|---|
public final File getFile()
| |
| getFileName | back to summary |
|---|---|
| public final String getFileName() Implements org. Doc from org. Returns a decorative "file name" that can be used for reporting errors and the like. It does not necessarily map to a file in the local file system!
| |
| getLocation | back to summary |
|---|---|
| public URL getLocation() throws IOException Implements org.
| |
| lastModified | back to summary |
|---|---|
| public final long lastModified() Implements org. Doc from org. Returns the time of the last modification, in milliseconds since 1970, or
| |
| open | back to summary |
|---|---|
| public final InputStream open() throws IOException Implements org. Doc from org. Opens the resource. The caller is responsible for closing the
| |
| toString | back to summary |
|---|---|
| public final String toString() Overrides java. Doc from java. Returns a string representation of the object. | |