|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.util.JRStyledTextParser
public class JRStyledTextParser
Constructor Summary | |
---|---|
JRStyledTextParser()
|
Method Summary | |
---|---|
static JRStyledTextParser |
getInstance()
Return a cached instance. |
JRStyledText |
getStyledText(java.util.Map parentAttributes,
java.lang.String text,
boolean isStyledText)
Creates a styled text object by either parsing a styled text String or by wrapping an unstyled String. |
JRStyledText |
parse(java.util.Map attributes,
java.lang.String text)
|
java.lang.String |
write(JRStyledText styledText)
Outputs a styled text String given a styled text instance. |
java.lang.String |
write(JRStyledText styledText,
int startIndex,
int endIndex)
Outputs the String representation of a styled text chunk. |
java.lang.String |
write(java.util.Map parentAttrs,
java.text.AttributedCharacterIterator iterator,
java.lang.String text)
Outputs a styled text String given a set of element-level styled text attributes and a styled text in the form of a String text and an iterator of style attributes. |
void |
writeChunk(java.lang.StringBuffer sbuffer,
java.util.Map parentAttrs,
java.util.Map attrs,
java.lang.String chunk)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JRStyledTextParser()
Method Detail |
---|
public static JRStyledTextParser getInstance()
public JRStyledText parse(java.util.Map attributes, java.lang.String text) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public JRStyledText getStyledText(java.util.Map parentAttributes, java.lang.String text, boolean isStyledText)
parentAttributes
- the element-level styled text attributestext
- the (either styled or unstyled) textisStyledText
- flag indicating that the text is styled
public java.lang.String write(JRStyledText styledText)
styledText
- the styled text object
public java.lang.String write(java.util.Map parentAttrs, java.text.AttributedCharacterIterator iterator, java.lang.String text)
parentAttrs
- the element-level styled text attributesiterator
- iterator of styled text attributestext
- the text
public java.lang.String write(JRStyledText styledText, int startIndex, int endIndex)
styledText
- the styled textstartIndex
- the start indexendIndex
- the end index
write(Map, AttributedCharacterIterator, String)
public void writeChunk(java.lang.StringBuffer sbuffer, java.util.Map parentAttrs, java.util.Map attrs, java.lang.String chunk)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |