- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for getResources (0.06 sec)
-
src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java
* Resources that the class loader does not have access to will not be included. * @see java.lang.ClassLoader#getResources(String) */ public static Iterator<URL> getResources(final String name) { assertArgumentNotEmpty("name", name); return getResources(Thread.currentThread().getContextClassLoader(), name); } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 7.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/ClassLoaderUtilTest.java
*/ @Test public void testGetResources() throws Exception { final String name = TestCase.class.getName().replace('.', '/') + ".class"; final Iterator<URL> itr = ClassLoaderUtil.getResources(this.getClass(), name); assertThat(itr, is(notNullValue())); final URL url = itr.next(); assertThat(url, is(notNullValue())); } /** * @throws Exception */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 3K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/path/DefaultPathTranslator.java
build.setTestSourceDirectory(alignToBaseDirectory(build.getTestSourceDirectory(), basedir)); for (Resource resource : build.getResources()) { resource.setDirectory(alignToBaseDirectory(resource.getDirectory(), basedir)); } for (Resource resource : build.getTestResources()) {
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 7.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ProtocolHelper.java
final String path = basePackage.replace('.', '/'); final ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); try { final Enumeration<URL> resources = classLoader.getResources(path); while (resources.hasMoreElements()) { final URL resource = resources.nextElement(); logger.debug("loading {}", resource);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 9.7K bytes - Viewed (1) -
src/main/java/org/codelibs/core/io/TraversalUtil.java
return EMPTY_ARRAY; } final String baseName = toDirectoryName(rootPackage); final List<Traverser> list = newArrayList(); for (final Iterator<URL> it = ClassLoaderUtil.getResources(baseName); it.hasNext();) { final URL url = it.next(); final Traverser resourcesType = getTraverser(url, rootPackage, baseName); if (resourcesType != null) {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 18.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/reflect/ClassPathTest.java
assertEquals( "a.b", new ClassInfo(FILE, "a/b/Foo.class", getClass().getClassLoader()).getPackageName()); } // Test that ResourceInfo.urls() returns identical content to ClassLoader.getResources() @AndroidIncompatible public void testGetClassPathUrls() throws Exception { if (isWindows()) { return; // TODO: b/136041958 - We need to account for drive letters in the path. }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 20:58:01 UTC 2025 - 23K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/TransferListenerAdapter.java
Long transferred; synchronized (transfers) { transferred = transfers.remove(transferEvent.getResource()); } if (transferred != null) { event.setTransferredBytes(transferred); } synchronized (artifacts) { artifacts.remove(transferEvent.getResource()); } listener.transferCompleted(event); } @Override
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
*/ @Test public void testForEachJarFile() throws Exception { final String classFilePath = TestCase.class.getName().replace('.', '/') + ".class"; final URL classURL = ResourceUtil.getResource(classFilePath); final JarURLConnection con = (JarURLConnection) classURL.openConnection(); ResourceTraversalUtil.forEach(con.getJarFile(), (ResourceHandler) (path, is) -> { try {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/ResourceUtil.java
* The resource path. Must not be {@literal null} or empty string. * @return The resource {@link URL} * @see #getResource(String, String) */ public static URL getResource(final String path) { assertArgumentNotEmpty("path", path); return getResource(path, null); } /** * Returns the resource from the context class loader. * * @param path
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 14.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ResourcesTest.java
} public void testToString() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt"); assertEquals(I18N, Resources.toString(resource, UTF_8)); assertThat(Resources.toString(resource, US_ASCII)).isNotEqualTo(I18N); } public void testToByteArray() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed May 14 19:40:47 UTC 2025 - 6.9K bytes - Viewed (0)