public String getRelativePath ( String url, char directorySeparator, boolean includeExtension ) { String p1 = cp1.getRelativePath ( url, directorySeparator, includeExtension ); if (p1 != null) return p1; return cp2.getRelativePath ( url, directorySeparator, includeExtension ); }
/** * Returns relative path for given url. * * @param url a url of resource file * @param directorySeparator a directory separator character * @param includeExtension whether the file extension should be included * in the result * * @return relative path */ public String getRelativePath ( String url, char directorySeparator, boolean includeExtension ) { return getContext ().getRelativePath (url, directorySeparator, includeExtension); }