|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Abstraction of a File
or some other entity that is
used to hold bytes of data.
Method Summary | |
boolean |
exists()
Returns true if the resource exists. |
InputStream |
getInputStream()
Returns an InputStream used to read the resource
data. |
long |
lastModified()
Returns the time of last modification. |
long |
length()
Returns the number of bytes in the InputStream . |
String |
toString()
Returns a String representation of the
Resource . |
Method Detail |
public long lastModified() throws IOException
public long length() throws IOException
InputStream
.public boolean exists() throws IOException
true
if the resource exists.public InputStream getInputStream() throws IOException
InputStream
used to read the resource
data.public String toString()
String
representation of the
Resource
.toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |