|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.oyster.test.ExampleGenerator
Class for storing and generation of resources used in test examples. This class is intended for simulation of contents generated by program and attachments for composing email messages.
Constructor Summary | |
ExampleGenerator()
|
Method Summary | |
java.io.ByteArrayInputStream |
getGifImage()
Returns image file green.gif as ByteArrayInputStream |
java.io.ByteArrayInputStream |
getHtmlStream()
Returns HTML code from storage. |
java.lang.String |
getHtmlString()
Returns HTML code from storage. |
java.io.ByteArrayInputStream |
getZipStream()
Returns zip file generated by program as ByteArrayInputStream |
void |
setResourceInExampleHtml(java.lang.String name0,
java.lang.String value0)
Sets value to corresponding resource in html code (in this example it is one of pictures: red.gif, blue.gif, green.gif, yellow.jpg or orange.jpg). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExampleGenerator()
Method Detail |
public void setResourceInExampleHtml(java.lang.String name0, java.lang.String value0)
name0
- name of desired resource. Can be: "RED", "BLUE", "YELLOW",
"GREEN" or "ORANGE". If wrong value is given to argument, default value is
taken in methods getHtmlStream and getHtmlString (default values are relative
adresses and they can be seen from orginal html file: HtmlTest.html).value0
- value which is given to appropriate resource (relative or
absolute path, http://... or file://... url, or virtual_file_name value used
for IputStream resources).public java.lang.String getHtmlString()
public java.io.ByteArrayInputStream getHtmlStream() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public java.io.ByteArrayInputStream getZipStream() throws java.io.IOException, SMIMEException
java.io.IOException
SMIMEException
public java.io.ByteArrayInputStream getGifImage()
|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |