@Override protected char[] appendPathOnFileSystem(int accumulatedPathLength, int[] positionRef) { String parentPath = myParentLocalFile.getPath(); char[] chars = new char [parentPath.length() + JarFileSystem.JAR_SEPARATOR.length() + accumulatedPathLength]; positionRef[0] = copyString(chars, positionRef[0], myParentLocalFile.getPath()); positionRef[0] = copyString(chars, positionRef[0], JarFileSystem.JAR_SEPARATOR); return chars; }
private static String stripSuffix(String url) { int separatorIndex = url.indexOf(JarFileSystem.JAR_SEPARATOR); if (separatorIndex < 0) return ""; return url.substring(separatorIndex + JarFileSystem.JAR_SEPARATOR.length()); }