net.jackofalltrades.irc.util
Class FontStyleTools

java.lang.Object
  extended bynet.jackofalltrades.irc.util.FontStyleTools

public class FontStyleTools
extends java.lang.Object

Provides utility methods for removing text formatting characters.

Version:
$Revision: 1.7 $ $Date: 2003/08/03 21:01:35 $
Author:
Bradley M. Handy (bhandy@users.sf.net)

Method Summary
static java.lang.String stripAllFormatting(java.lang.String message)
          Removes all formatting character sequences from the message.
static java.lang.String stripColorCodes(java.lang.String message)
          Removes only color code and reverse style character sequences.
static java.lang.String stripFormatting(java.lang.String message)
          Removes only the formatting characters sequences, and default style and color sequences are left intact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

stripColorCodes

public static java.lang.String stripColorCodes(java.lang.String message)
Removes only color code and reverse style character sequences. The default style sequences are left intact along with the text formatting sequences.

Parameters:
message - the message, from which, the color codes will be removed.
Returns:
the message without color codes.

stripFormatting

public static java.lang.String stripFormatting(java.lang.String message)
Removes only the formatting characters sequences, and default style and color sequences are left intact.

Parameters:
message - the message, from which, formatting characters will be removed.
Returns:
the message without formatting character sequences.

stripAllFormatting

public static java.lang.String stripAllFormatting(java.lang.String message)
Removes all formatting character sequences from the message.

Parameters:
message - the message, from which, formatting characters will be removed.
Returns:
the message without formatting character sequences.


Copyright © 2002-2003 Jack-of-all-trades Programming Services. All Rights Reserved.