kr.co.hit.live.util
Class PathUtil

java.lang.Object
  extended by kr.co.hit.live.util.PathUtil

public class PathUtil
extends Object

ClassPath 등의 경로를 다루기위한 기능들을 제공하는 유틸리티 클래스

Since:
4.0
Author:
김형도

Constructor Summary
PathUtil()
           
 
Method Summary
static String getCanonicalPath(String path)
          주어진 경로를 받아서 .과 ..
static String getCanonicalPath(String path, boolean includeLast)
          주어진 경로를 받아서 .과 ..
static String getParentPath(String path)
          상위 경로의 path를 반환한다.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathUtil

public PathUtil()
Method Detail

getCanonicalPath

public static String getCanonicalPath(String path,
                                      boolean includeLast)
주어진 경로를 받아서 .과 .. 을 제거한 경로를 반환한다.

Parameters:
path -
includeLast - true이면 마지막 경로를 포함시키지 않고 반환한다.
Returns:

getCanonicalPath

public static String getCanonicalPath(String path)
주어진 경로를 받아서 .과 .. 을 제거한 경로를 반환한다.

Parameters:
path -
Returns:

getParentPath

public static String getParentPath(String path)
상위 경로의 path를 반환한다. 경로에 .과 ..은 제거된 형태이다.

Parameters:
path -
Returns:


Copyright © 2014. All Rights Reserved.