org.jboss.netty.util.internal
Class StringUtil

java.lang.Object
  extended by org.jboss.netty.util.internal.StringUtil

public class StringUtil
extends Object

String utility class.

Version:
$Rev: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $
Author:
The Netty Project, Trustin Lee

Field Summary
static String NEWLINE
           
 
Method Summary
static String stripControlCharacters(Object value)
          Strip an Object of it's ISO control characters.
static String stripControlCharacters(String value)
          Strip a String of it's ISO control characters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEWLINE

public static final String NEWLINE
Method Detail

stripControlCharacters

public static String stripControlCharacters(Object value)
Strip an Object of it's ISO control characters.

Parameters:
value - The Object that should be stripped. This objects toString method will called and the result passed to stripControlCharacters(String).
Returns:
String A new String instance with its hexadecimal control characters replaced by a space. Or the unmodified String if it does not contain any ISO control characters.

stripControlCharacters

public static String stripControlCharacters(String value)
Strip a String of it's ISO control characters.

Parameters:
value - The String that should be stripped.
Returns:
String A new String instance with its hexadecimal control characters replaced by a space. Or the unmodified String if it does not contain any ISO control characters.


Copyright © 2008-2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.