- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for toJarFilePath (0.14 sec)
-
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
final String classFilePath = TestCase.class.getName().replace('.', '/') + ".class"; final URL classURL = ResourceUtil.getResource(classFilePath); final URL jarURL = new File(JarFileUtil.toJarFilePath(classURL)).toURI().toURL(); ResourceTraversalUtil.forEach(new ZipInputStream(jarURL.openStream()), (ResourceHandler) (path, is) -> { try { if (count < 10) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/ClassTraversalTest.java
final String classFilePath = TestCase.class.getName().replace('.', '/') + ".class"; final URL classURL = ResourceUtil.getResource(classFilePath); final URL jarURL = new File(JarFileUtil.toJarFilePath(classURL)).toURI().toURL(); ClassTraversalUtil.forEach(new ZipInputStream(jarURL.openStream()), (ClassHandler) (packageName, shortClassName) -> { if (count < 10) {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/jar/JarFileUtilTest.java
final URL url = new URL("jar:" + f.toURI().toURL() + "!/"); final String root = new File("/").getCanonicalPath(); assertEquals(root + "Program Files" + File.separator + "foo.jar", JarFileUtil.toJarFilePath(url)); } /** * @throws Exception */ public void testRelativePath() throws Exception { final File f = new File("/Program Files/foo.jar");
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 1.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/jar/JarFileUtil.java
} return create(new File(toJarFilePath(jarUrl))); } /** * URLで指定されたJarファイルのパスを返します。 * * @param jarUrl * Jarファイルを示すURL。{@literal null}であってはいけません * @return URLで指定されたJarファイルのパス */ public static String toJarFilePath(final URL jarUrl) { assertArgumentNotNull("jarUrl", jarUrl);
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 5.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceUtil.java
dir = new File(getFileName(url)); for (int i = 0; i < num; ++i) { dir = dir.getParentFile(); } } else { dir = new File(JarFileUtil.toJarFilePath(url)); } return dir; } /** * リソースのURLを外部形式に変換します。 * * @param url * リソースのURL。{@literal null}であってはいけません * @return 外部形式 */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 15.8K bytes - Viewed (0)