|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dlese.dpc.webapps.tools.OutputTools
public final class OutputTools
This class contains tools for formatting ouput, such as converting XML text to HTML, that are useful in many servlet/JSP based applications.
| Constructor Summary | |
|---|---|
OutputTools()
|
|
| Method Summary | |
|---|---|
static String |
getContentFromXML(String stg)
Gets the content from XML by stripping all XML tags. |
static String |
htmlEncode(String text)
Convert a plain text string into HTML. |
static String |
xmlToHtml(String stg)
Provides HTML encoding for XML resulting in text that looks good in a Web browser. |
static String |
xmlToHtmlIndent(String stg)
Provides HTML encoding for XML resulting in text that looks good in a Web browser. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OutputTools()
| Method Detail |
|---|
public static final String xmlToHtml(String stg)
stg - The string to convert.
public static final String getContentFromXML(String stg)
XMLConversionService.getContentFromXML(String).
stg - An XML String.
public static final String xmlToHtmlIndent(String stg)
Note: This method still needs some work.
stg - The string to convert.
public static final String htmlEncode(String text)
text - The original text.
|
DLESE Tools v1.6.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||