|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Resource
Interface representing a generic Resource to be used by the EasyTEst framework. Three implementations exists for this interface in the EasyTest framework:
ClasspathResource - Resources that exists in the ClasspathFileSystemResource - Resources that exists in the FileSystemUrlResource - Resource that exists as a URL(http , ftp) etc
| 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 |
| Method Detail |
|---|
boolean exists()
InputStream getInputStream() throws IOException
InputStream associated with the resource
InputStream
IOException - if an IOException occursOutputStream getOutputStream() throws IOException
OutputStream associated with the resource
OutputStream
IOException - if an IOException occursURL getURL()
File getFile() throws Exception
String getResourceName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||