|
Web Site | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Resource
is "something" that is typically found by a
ResourceFinder
, can be open()
ed for
reading, and optionally has a lastModified()
property.
There also exists a ResourceCreator
concept which
opens a resource for writing, but that happens directly and not through an intermediate
Resource
object.
ResourceFinder
,
ResourceCreator
Method Summary | |
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. |
Method Detail |
public java.io.InputStream open() throws java.io.IOException
InputStream
.
java.io.IOException
public java.lang.String getFileName()
public long lastModified()
0L
if the time of the last modification cannot
be determined.
|
Web Site | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |