org.tigris.eyebrowse
Class TextUtil

java.lang.Object
  |
  +--org.tigris.eyebrowse.TextUtil

public class TextUtil
extends java.lang.Object

TextUtil Utility class for text processing.

Since:
1.0
Author:
Brian Goetz - Quiotix Corp

Constructor Summary
TextUtil()
           
 
Method Summary
static java.lang.String convertOutputString(java.lang.String source)
          This method checks to see if output strings should be converted (from unicode to some other encoding) based on the conf file.
static java.lang.String convertOutputString(java.lang.String source, java.lang.String charset)
          TODO : This method also exists in commons-util, and we may want to switch to using that version.
static java.lang.String textToHtml(java.lang.String s)
          TextUtil Convert a text string to HTML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextUtil

public TextUtil()
Method Detail

textToHtml

public static java.lang.String textToHtml(java.lang.String s)
TextUtil Convert a text string to HTML. Basically, this means replacing all left angle brackets with <.

convertOutputString

public static java.lang.String convertOutputString(java.lang.String source)
This method checks to see if output strings should be converted (from unicode to some other encoding) based on the conf file. If they should be converted, it applies the specified charset; otherwise, they're left unchanged.

convertOutputString

public static java.lang.String convertOutputString(java.lang.String source,
                                                   java.lang.String charset)
                                            throws java.io.IOException
TODO : This method also exists in commons-util, and we may want to switch to using that version. But that would involve increasing the dependencies to build and use eyebrowse, however; and we may want to change to using unicode internally anyway, which would remove the need for all this code. This should be re-evaluated in the near future.


Copyright © 2000 Quiotix Corp. All Rights Reserved.