|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.grcomputing.opencms.search.lucene.FastTagStripper
This class implements a very fast tag stripper. It is not exactly careful about stripping tags... it just rips them all out.
Constructor Summary | |
FastTagStripper()
|
Method Summary | |
static boolean |
isWhitespace(char c)
|
static void |
main(java.lang.String[] argv)
|
static java.lang.String |
strip(char[] doc)
Ruthlessly strips all tags out of a string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FastTagStripper()
Method Detail |
public static void main(java.lang.String[] argv)
public static java.lang.String strip(char[] doc)
Note that this will include contents of script or style tags that do not use comment tags to hide their contents.
This will work for XML, too, but it will strip out the contents of CDATA elements as well.
public static boolean isWhitespace(char c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |