1 package org.feistymeow.filesystem;
3 import java.net.URLDecoder;
5 import org.apache.commons.logging.Log;
6 import org.apache.commons.logging.LogFactory;
15 private static Log c_logger = LogFactory.getLog(
PathHelper.class);
23 path = URLDecoder.decode(getClass().getProtectionDomain().getCodeSource().getLocation().getPath(),
"x-www-form-urlencoded");
26 if ( (
path.length() >=3) && (
path.charAt(0) ==
'/') && (
path.charAt(2) ==
':') )
29 int lastSlash =
path.lastIndexOf(
'/');
31 }
catch (Exception ex) {
32 c_logger.error(
"caught exception during path calculation: " + ex.toString());