|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.easetech.easytest.io.UrlResource
public class UrlResource
A Resource implementation for the URL based resources.
| Constructor Summary | |
|---|---|
UrlResource(String path)
Construct a new UrlResource from the given path |
|
UrlResource(URL url)
Construct a new UrlResource from the given URL |
|
| Method Summary | |
|---|---|
boolean |
exists()
Checks whether the URL resource exists or not. |
File |
getFile()
Get the File associated with the resource |
InputStream |
getInputStream()
Get the input stream associated with the resource |
OutputStream |
getOutputStream()
Get the OutputStream associated with the resource |
String |
getPath()
|
String |
getResourceName()
Get the resource name |
URL |
getURL()
Get the URL associated with the resource |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UrlResource(String path)
throws MalformedURLException
path -
MalformedURLExceptionpublic UrlResource(URL url)
url - | Method Detail |
|---|
public String getPath()
public boolean exists()
exists in interface Resource
public InputStream getInputStream()
throws IOException
getInputStream in interface ResourceIOExceptionpublic URL getURL()
getURL in interface Resource
public File getFile()
throws Exception
getFile in interface ResourceExceptionpublic String getResourceName()
getResourceName in interface Resource
public OutputStream getOutputStream()
throws IOException
OutputStream associated with the resource
getOutputStream in interface ResourceOutputStream
IOException - if an IOException occurspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||