org.apache.camel.util
Class StringHelper

java.lang.Object
  extended by org.apache.camel.util.StringHelper

public final class StringHelper
extends Object

Helper methods for working with Strings.


Method Summary
static String sanitize(String s)
          Ensures that s is friendly for a URL or file system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sanitize

public static String sanitize(String s)
Ensures that s is friendly for a URL or file system.

Parameters:
s - String to be sanitized.
Returns:
sanitized version of s.
Throws:
NullPointerException - if s is null.


Copyright © 2007-2009 The Apache Software Foundation. All Rights Reserved.