コード例 #1
0
 @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;
 }
コード例 #2
0
 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());
 }