|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.easetech.easytest.io.EmptyResource
public class EmptyResource
An empty implementation of the resource, useful in cases where the user loads the data from Java Class and thus does not require to load a resource explicitly
| Constructor Summary | |
|---|---|
EmptyResource()
|
|
| Method Summary | |
|---|---|
boolean |
exists()
Indicates whether the resource exists or not |
File |
getFile()
Get the File associated with the resource |
InputStream |
getInputStream()
Get the InputStream associated with the resource |
OutputStream |
getOutputStream()
Get the OutputStream associated with the resource |
String |
getResourceName()
Get the resource name |
URL |
getURL()
get the URL associated with the resource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmptyResource()
| Method Detail |
|---|
public boolean exists()
Resource
exists in interface Resource
public InputStream getInputStream()
throws IOException
ResourceInputStream associated with the resource
getInputStream in interface ResourceInputStream
IOException - if an IOException occurs
public OutputStream getOutputStream()
throws IOException
ResourceOutputStream associated with the resource
getOutputStream in interface ResourceOutputStream
IOException - if an IOException occurspublic URL getURL()
ResourceURL associated with the resource
getURL in interface ResourceURL
public File getFile()
throws Exception
ResourceFile associated with the resource
getFile in interface ResourceFile
Exceptionpublic String getResourceName()
Resource
getResourceName in interface Resource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||