|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.adobe.icc.ddg.ContentConverterUtil
public class ContentConverterUtil
Field Summary | |
---|---|
static java.lang.String |
BULLET_CONTENT_POSTFIX
|
static java.util.regex.Pattern |
flashHtmlPattern
|
static java.lang.Double |
MM_TO_POINT_FACTOR
|
static java.util.regex.Pattern |
tlfPattern
|
static java.util.regex.Pattern |
xhtmlPattern
|
Constructor Summary | |
---|---|
ContentConverterUtil()
|
Method Summary | |
---|---|
void |
addBulletFlashHtml(Element textFormat,
java.lang.String bulletChar)
Adds the Bullet character in given flashHtml TEXTFORMAT Element. |
void |
addBulletTlf(Element paraElement,
java.lang.String bulletChar)
Adds the Bullet character in given TLF Para Element. |
void |
addBulletXhtml(Element paraElement,
java.lang.String bulletChar)
Adds the Bullet character in given Xhtml Para Element. |
Element |
appendStyleAsAttribute(Element element,
java.lang.String targetAttribute,
java.lang.Double value)
Appends the value to the existing targetAttribute value associated with the element. |
Element |
appendXHTMLStyle(Element element,
java.lang.String targetAttribute,
java.lang.Double value)
Appends the value to the existing attribute value associated with the element of XHTML. |
java.lang.String |
convertLists(java.lang.String content,
java.lang.Double indentValue)
|
java.lang.String |
convertNewLinesToXhml(java.lang.String richText)
|
java.lang.String |
convertXhtmlLists(java.lang.String resolvedContent,
java.lang.Double indentValue)
|
Element |
copyXhtmlSpanForBullet(Element span)
|
java.lang.String |
extractPlainText(java.lang.String richText,
boolean escapeNewLines)
Formats the specified rich text as plain text. |
Element |
findFirstXhtmlSpan(java.lang.String contentXML,
java.lang.String paraXpath)
|
java.lang.String |
findXhtmlStyleAttr(java.lang.String attr,
Element el)
|
java.io.Serializable |
getTypedData(java.io.Serializable value,
DataType dataType,
LocalizedDataFormatInfo sourceFormat,
LocalizedDataFormatInfo targetFormat)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.Double MM_TO_POINT_FACTOR
public static java.lang.String BULLET_CONTENT_POSTFIX
public static final java.util.regex.Pattern xhtmlPattern
public static final java.util.regex.Pattern tlfPattern
public static final java.util.regex.Pattern flashHtmlPattern
Constructor Detail |
---|
public ContentConverterUtil()
Method Detail |
---|
public java.lang.String extractPlainText(java.lang.String richText, boolean escapeNewLines)
richText
- The rich text (XHTML or Flash HTML) to format as plain text.escapeNewLines
- If true, new lines will be escaped to the literal '\n' so that the plain text can be used in script.
public java.lang.String convertNewLinesToXhml(java.lang.String richText)
public java.lang.String convertLists(java.lang.String content, java.lang.Double indentValue)
public java.lang.String convertXhtmlLists(java.lang.String resolvedContent, java.lang.Double indentValue)
public java.lang.String findXhtmlStyleAttr(java.lang.String attr, Element el)
public Element findFirstXhtmlSpan(java.lang.String contentXML, java.lang.String paraXpath) throws DocumentException
DocumentException
public Element copyXhtmlSpanForBullet(Element span)
public Element appendStyleAsAttribute(Element element, java.lang.String targetAttribute, java.lang.Double value)
element
- targetAttribute
- value
-
public Element appendXHTMLStyle(Element element, java.lang.String targetAttribute, java.lang.Double value)
element
- targetAttribute
- value
-
public void addBulletFlashHtml(Element textFormat, java.lang.String bulletChar)
textFormat
- bulletChar
- public void addBulletXhtml(Element paraElement, java.lang.String bulletChar)
paraElement
- bulletChar
- public void addBulletTlf(Element paraElement, java.lang.String bulletChar)
paraElement
- bulletChar
- public java.io.Serializable getTypedData(java.io.Serializable value, DataType dataType, LocalizedDataFormatInfo sourceFormat, LocalizedDataFormatInfo targetFormat)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |