com.threerings.jpkg
Class PathUtils

java.lang.Object
  extended by com.threerings.jpkg.PathUtils

public class PathUtils
extends Object

Small utility class for working with file paths.


Constructor Summary
PathUtils()
           
 
Method Summary
static String normalize(String path)
          Normalize a path by removing all relative attributes, such as ./..
static String stripLeadingSeparators(String path)
          Strip any leading path separators from the start of the path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathUtils

public PathUtils()
Method Detail

normalize

public static String normalize(String path)
Normalize a path by removing all relative attributes, such as ./.. and stripping any separators from the start and end of the path.


stripLeadingSeparators

public static String stripLeadingSeparators(String path)
Strip any leading path separators from the start of the path.



Copyright © 2007-2008 Three Rings Design, Inc. All Rights Reserved. Released under a BSD license.