|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.janino.util.resource.FileResource
public class FileResource
Representation of a resource that is a File.
| Constructor Summary | |
|---|---|
FileResource(java.io.File file)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileResource(java.io.File file)
| Method Detail |
|---|
public final java.lang.String getFileName()
Resource
getFileName in interface Resource
public final java.io.InputStream open()
throws java.io.IOException
ResourceInputStream.
open in interface Resourcejava.io.IOExceptionpublic final long lastModified()
Resource0L if the time of the last modification cannot
be determined.
lastModified in interface Resourcepublic final java.io.File getFile()
public final java.lang.String toString()
toString in class java.lang.Object
|
janino.net | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||