|
SAP NetWeaver 7.4 SP03 Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TextPayload
The TextPayload extends the Payload interface and specializes for the text only document.
| Method Summary | |
|---|---|
String |
getEncoding()
Returns the encoding of the input stream you can get with getInputStream or the content you can get
with getContent. |
Reader |
getReader()
Returns a Reader to the content of this payload. |
String |
getText()
Returns the content as String. |
void |
setContent(byte[] bytes,
String encoding)
Sets the content as byte array into payload, also specifying the encoding. |
void |
setText(String text)
Sets the content as String. |
void |
setText(String text,
String encoding)
Sets the content as String, with the given encoding. |
| Methods inherited from interface com.sap.engine.interfaces.messaging.api.Payload |
|---|
clearAttributes, getAttribute, getAttributeNames, getContent, getContentType, getDescription, getInputStream, getName, removeAttribute, setAttribute, setContent, setContentType, setDescription, setName |
| Method Detail |
|---|
String getEncoding()
getInputStream or the content you can get
with getContent.
String getText()
String.
void setText(String text)
throws IOException
text - String text content.
IOException
void setText(String text,
String encoding)
throws IOException
text - String text content.encoding - The encoding of the given text string.
IOExceptionReader getReader()
void setContent(byte[] bytes,
String encoding)
throws InvalidParamException
bytes - of data in byte array.encoding - of the byte array.
InvalidParamException - if the content or encoding is invalid.| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] SAP_XIAF
|
[sap.com] com.sap.aii.af.ifc.facade
|
api
|
BC-XI
|
|
SAP NetWeaver 7.4 SP03 Process Integration | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||