|
||||||||||
| 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
| Method Summary | |
|---|---|
void |
error(SAXParseException e)
|
void |
fatalError(SAXParseException e)
|
static JRStyledTextParser |
getInstance()
Return a cached instance. |
static Locale |
getLocale()
|
JRStyledText |
getStyledText(Map<AttributedCharacterIterator.Attribute,Object> parentAttributes,
String text,
boolean isStyledText,
Locale locale)
Creates a styled text object by either parsing a styled text String or by wrapping an unstyled String. |
JRStyledText |
parse(Map<AttributedCharacterIterator.Attribute,Object> attributes,
String text,
Locale locale)
|
static void |
setLocale(Locale locale)
|
void |
warning(SAXParseException e)
|
String |
write(JRStyledText styledText)
Outputs a styled text String given a styled text instance. |
String |
write(JRStyledText styledText,
int startIndex,
int endIndex)
Outputs the String representation of a styled text chunk. |
String |
write(Map<AttributedCharacterIterator.Attribute,Object> parentAttrs,
AttributedCharacterIterator iterator,
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(StringBuffer sbuffer,
Map<AttributedCharacterIterator.Attribute,Object> parentAttrs,
Map<AttributedCharacterIterator.Attribute,Object> attrs,
String chunk)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JRStyledTextParser getInstance()
public static void setLocale(Locale locale)
public static Locale getLocale()
public JRStyledText parse(Map<AttributedCharacterIterator.Attribute,Object> attributes,
String text,
Locale locale)
throws SAXException
SAXException
public JRStyledText getStyledText(Map<AttributedCharacterIterator.Attribute,Object> parentAttributes,
String text,
boolean isStyledText,
Locale locale)
parentAttributes - the element-level styled text attributestext - the (either styled or unstyled) textisStyledText - flag indicating that the text is styledlocale - the locale for the text
public String write(JRStyledText styledText)
styledText - the styled text object
public String write(Map<AttributedCharacterIterator.Attribute,Object> parentAttrs,
AttributedCharacterIterator iterator,
String text)
parentAttrs - the element-level styled text attributesiterator - iterator of styled text attributestext - the text
public 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(StringBuffer sbuffer,
Map<AttributedCharacterIterator.Attribute,Object> parentAttrs,
Map<AttributedCharacterIterator.Attribute,Object> attrs,
String chunk)
public void error(SAXParseException e)
error in interface ErrorHandlerpublic void fatalError(SAXParseException e)
fatalError in interface ErrorHandlerpublic void warning(SAXParseException e)
warning in interface ErrorHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||