Class PresentationMLParser
java.lang.Object
com.symphony.bdk.core.service.message.util.PresentationMLParser
Helper class for parsing the PresentationML to text content.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getTextContent
(String presentationML) Get trimmed text content from PresentationMLstatic String
getTextContent
(String presentationML, Boolean trim) Get text content from PresentationML
-
Method Details
-
getTextContent
public static String getTextContent(String presentationML, Boolean trim) throws PresentationMLParserException Get text content from PresentationML- Parameters:
presentationML
- the PresentationML to be parsedtrim
- flag if we want to trim the text result- Returns:
- the message text content extracted from the given PresentationML
- Throws:
PresentationMLParserException
-
getTextContent
Get trimmed text content from PresentationML- Parameters:
presentationML
- the PresentationML to be parsed- Returns:
- the message text content extracted from the given PresentationML
- Throws:
PresentationMLParserException
-