2009年12月11日 星期五

getparentfile、getpath、getabsolutepath與getcanonicalpath

getParentFile(): Returns the parent directory as a File object, or null if this File object does not have a parent.

getPath()返回一个绝对的路径的字符串();
getAbsolutePath() 返回一个完整的路径字符串
getCanonicalPath()返回一个规范的路径(区分大小写)

沒有留言: