|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ckkloverdos.resource.EmptyResource
public final class EmptyResource
Represents a resource that doesnot exist.
Field Summary | |
---|---|
static EmptyResource |
INSTANCE
|
Method Summary | |
---|---|
boolean |
exists()
Returns true iff the resource exists. |
java.io.File |
getFile()
Returns the resource file. |
java.io.InputStream |
getInputStream()
Returns an input stream used to read the resource bytes. |
java.lang.String |
getName()
Returns the resource name. |
java.net.URL |
getURL()
Returns the resource URL. |
boolean |
isFile()
Returns true iff the resource is actually a local file. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EmptyResource INSTANCE
Method Detail |
---|
public java.lang.String getName()
IResource
getName
in interface IResource
public java.net.URL getURL()
IResource
getURL
in interface IResource
public java.io.InputStream getInputStream() throws java.io.IOException
IResource
getInputStream
in interface IResource
java.io.IOException
public boolean exists()
IResource
true
iff the resource exists.
exists
in interface IResource
public boolean isFile()
IResource
true
iff the resource is actually a local file.
isFile
in interface IResource
public java.io.File getFile()
IResource
IResource.isFile()
returns true
,
then the actual file is returned, otherwise null
.
getFile
in interface IResource
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |