public interface TextPayload extends Payload
The TextPayload
extends the Payload interface and specializes for the text only document.
Modifier and Type | Method and Description |
---|---|
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.
|
clearAttributes, getAttribute, getAttributeNames, getContent, getContentType, getDescription, getInputStream, getName, removeAttribute, setAttribute, setContent, setContentType, setDescription, setName
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
- java.io.IOExceptionvoid setText(String text, String encoding) throws IOException
text
- String text content.encoding
- The encoding of the given text string.IOException
- java.io.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
|
Copyright 2019 SAP AG Complete Copyright Notice