|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.backsource.utils.javadoc.XMLEscaper
Simple utility to help escape XML fragments one wants to put into javadoc comments.
When run as main may be given either a string argument consisting of the xml to escape, or with - wich will make it read in the data from stdin, to finish press ctr-d.
The outputed data will be placed in <pre></pre> tags.
| Constructor Summary | |
XMLEscaper()
|
|
| Method Summary | |
static java.lang.String |
escape(java.lang.String xml)
Escape xml string so its possible to use as element content, and in a javadoc comment. |
static void |
main(java.lang.String[] args)
Escape XML fragments one wants to put into javadoc comments. |
static java.lang.String |
readInput()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XMLEscaper()
| Method Detail |
public static java.lang.String escape(java.lang.String xml)
throws java.lang.Exception
java.lang.Exception
public static java.lang.String readInput()
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
Escape XML fragments one wants to put into javadoc comments.
may be given either a string argument consisting of the xml to escape, or with - wich will make it read in the data from stdin, to finish press ctr-d.
The outputed data will be placed in <pre></pre> tags.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||