Compoze Software, Inc.

com.compoze.jsp
Class HtmlToTextConverter


java.lang.Object

  |

  +--com.compoze.jsp.HtmlToTextConverter


public class HtmlToTextConverter
extends java.lang.Object

This class implements a converter which will take HTML and turn it into text.


Constructor Summary
HtmlToTextConverter()
           
 
Method Summary
static java.lang.String convertHtmlToText(java.lang.String sHtmlForm)
          Converts a string in html form to string in text form.
static java.lang.String convertHtmlToTextWithNewlines(java.lang.String sHtmlForm)
          Converts a string in html form to string in text form.
static void main(java.lang.String[] args)
          This is an exerciser.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlToTextConverter


public HtmlToTextConverter()
Method Detail

convertHtmlToText


public static java.lang.String convertHtmlToText(java.lang.String sHtmlForm)
Converts a string in html form to string in text form. This is done by removing all text between the < and > characters.
Parameters:
sHtmlForm - String in html form
Returns:
String in text form

main


public static void main(java.lang.String[] args)
This is an exerciser.

convertHtmlToTextWithNewlines


public static java.lang.String convertHtmlToTextWithNewlines(java.lang.String sHtmlForm)
Converts a string in html form to string in text form. This is done by removing all text between the < and > characters.
Parameters:
sHtmlForm - String in html form
Returns:
String in text form

Compoze Software, Inc.

Copyright ©1999-2001 Compoze Software, Inc. All rights reserved.