|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.util.FormattedTextParser
public class FormattedTextParser
Class responsible for performing a very lightweight parse of a primitive HTML subset. FormattedTextParsers are threadsafe and will generally be created once and reused, though the addElement() method should be called only before the parser has been used.
| Nested Class Summary | |
|---|---|
static class |
FormattedTextParser.DefaultElementInfo
Default implementation of ElementInfo. |
static class |
FormattedTextParser.ElementInfo
Abstract representation of an element type. |
| Constructor Summary | |
|---|---|
FormattedTextParser()
Create a FormattedTextParser. |
|
| Method Summary | |
|---|---|
void |
addElement(FormattedTextParser.ElementInfo element)
Adds a type of element to the parser. |
void |
writeFormattedText(javax.faces.context.FacesContext context,
java.lang.String text)
Outputs a String, using the set of registered ElementInfos to handle contained elements. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormattedTextParser()
| Method Detail |
|---|
public void addElement(FormattedTextParser.ElementInfo element)
public void writeFormattedText(javax.faces.context.FacesContext context,
java.lang.String text)
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||