f00f.net.irc.martyr.util
Class IRCStringUtils

java.lang.Object
  extended by f00f.net.irc.martyr.util.IRCStringUtils

public class IRCStringUtils
extends java.lang.Object

Author:
Daniel Henninger

Constructor Summary
IRCStringUtils()
           
 
Method Summary
static java.lang.String convertToHTML(java.lang.String msg)
          Returns the message with all formatting characters converted into associated html characters.
static java.lang.String stripControlChars(java.lang.String msg)
          Returns the message with all control characters stripped from it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IRCStringUtils

public IRCStringUtils()
Method Detail

stripControlChars

public static java.lang.String stripControlChars(java.lang.String msg)
Returns the message with all control characters stripped from it.

Parameters:
msg - Message to remove control chars from.
Returns:
Stripped form of message.

convertToHTML

public static java.lang.String convertToHTML(java.lang.String msg)
Returns the message with all formatting characters converted into associated html characters. TODO: Should actually parse colors.

Parameters:
msg - Message to convert to HTML format.
Returns:
Message in HTML format.


Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.