ro.isdc.wro.util
Class StringUtils

java.lang.Object
  extended by ro.isdc.wro.util.StringUtils

public final class StringUtils
extends Object

StringUtils Utility class. This class contains Utility methods for manipulating strings. Inspired from commons & spring.

Author:
Alex Objelean

Method Summary
static String cleanPath(String path)
          Normalize the path by suppressing sequences like "path/.." and inner simple dots.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cleanPath

public static String cleanPath(String path)
Normalize the path by suppressing sequences like "path/.." and inner simple dots.

The result is convenient for path comparison. For other uses, notice that Windows separators ("\") are replaced by simple slashes.

Parameters:
path - the original path
Returns:
the normalized path


Copyright © 2008-2013. All Rights Reserved.