|
||||||||||
| 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 IResourcepublic java.net.URL getURL()
IResource
getURL in interface IResource
public java.io.InputStream getInputStream()
throws java.io.IOException
IResource
getInputStream in interface IResourcejava.io.IOExceptionpublic boolean exists()
IResourcetrue iff the resource exists.
exists in interface IResourcepublic boolean isFile()
IResourcetrue iff the resource is actually a local file.
isFile in interface IResourcepublic java.io.File getFile()
IResourceIResource.isFile() returns true,
then the actual file is returned, otherwise null.
getFile in interface IResourcepublic 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 | |||||||||