ca.cbc.sportwire.util
Class Text2XML

java.lang.Object
  |
  +--ca.cbc.sportwire.util.Text2XML

public class Text2XML
extends java.lang.Object

Text2XML provides an ASCII-to-XML filter to transform a flat ASCII String or Stream into a tag-delimited XML which can be later transformed into HTML for pretty-printing on a website. The XML tags inserted include the common HTML tags for simple text: P (paragraph) PRE (preformatted text) HR (horizonal rule), and URLs are transformed into hotlinks. Created: Mon Nov 12 20:41:22 2001

Version:
$Id: Text2XML.java,v 1.1 2001/11/13 01:57:45 garym Exp $
Author:

Constructor Summary
Text2XML()
           
 
Method Summary
static java.lang.String transform(java.lang.String source)
          Method: 'transform' applies the TXT/XML transform to a String, returning a string; useful for transforming small documents.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

Text2XML

public Text2XML()
Method Detail

transform

public static java.lang.String transform(java.lang.String source)
Method: 'transform' applies the TXT/XML transform to a String, returning a string; useful for transforming small documents.
Parameters:
source - is a 'String' of plain ASCII text
Returns:
'String' of XML-tagged text