|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
An object passed from one MEG to another must implement MegObject. Use of an object may allow MEGs to eliminate parsing and re-parsing of input streams when multiple MEGs understand a common object (e.g. DOM).
| Method Summary | |
MegObject |
getClone()
returns a copy of this MegObject to preserve the data in its original state. |
java.io.InputStream |
getInputStream()
provides interoperation with "old" MEGs that do not understand the MegObject and must process the data as a MegInputStream. |
java.io.Reader |
getReader()
getReader provides access to the MegObject as character data rather than bytes. |
java.io.Reader |
getReader(java.lang.String encoding)
getReader provides access to the MegObject as character data using the specified character encoding. |
| Method Detail |
public java.io.InputStream getInputStream()
public java.io.Reader getReader()
throws java.io.UnsupportedEncodingException,
com.ibm.wbi.NotCharDataException
public java.io.Reader getReader(java.lang.String encoding)
throws java.io.UnsupportedEncodingException,
com.ibm.wbi.NotCharDataException
encoding - the desired character encoding.public MegObject getClone()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||