- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 40 for getResources (0.18 sec)
-
src/test/java/org/codelibs/core/io/CopyUtilTest.java
Reader reader = new StringReader(srcString); StringWriter writer = new StringWriter(); StringBuilder builder = new StringBuilder(); URL url = ResourceUtil.getResource(getClass().getName().replace('.', '/') + ".txt"); File inputFile = URLUtil.toFile(url); File outputFile = new File(inputFile.getParentFile(), ".out"); /** * @throws Exception */
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 4.6K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java
throws FileNotFoundException, URISyntaxException { ClassLoader cloader = Thread.currentThread().getContextClassLoader(); URL resourceUrl = cloader.getResource(resource); if (resourceUrl == null) { throw new FileNotFoundException("Unable to find: " + resource); } return new File(resourceUrl.toURI()); }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 20:01:00 UTC 2025 - 7.2K bytes - Viewed (0) -
compat/maven-compat/src/main/java/org/apache/maven/usability/plugin/ExpressionDocumenter.java
String myResourcePath = ExpressionDocumenter.class.getName().replace('.', '/') + ".class"; URL myResource = ExpressionDocumenter.class.getClassLoader().getResource(myResourcePath); assert myResource != null : "The resource is this class itself loaded by its own classloader and must exist"; String myClasspathEntry = myResource.getPath();
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 5.2K bytes - Viewed (0) -
cmd/handler-utils.go
} } func collectAPIStats(api string, f http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { resource, err := getResource(r.URL.Path, r.Host, globalDomainNames) if err != nil { defer logger.AuditLog(r.Context(), w, r, mustGetClaimsFromToken(r)) apiErr := errorCodes.ToAPIErr(ErrUnsupportedHostHeader)
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 16.3K bytes - Viewed (1) -
compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java
this(wagon, TRANSFER_ERROR, requestType, artifact); this.exception = exception; } public ArtifactTransferResource getResource() { return artifact; } /** * @return Returns the exception. */ public Exception getException() { return exception; } /**
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 7.7K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/PropertiesUtil.java
*/ public static void load(final Properties props, final String path) { assertArgumentNotNull("props", props); assertArgumentNotEmpty("path", path); load(props, ResourceUtil.getResource(path)); } /** * Wraps exception handling for {@link Properties#store(OutputStream, String)}. * * <p> * The output stream is not closed. * </p> *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 7.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
} return clazz; } return super.loadClass(name, resolve); } } @Test public void testGetFinalizerUrl() { assertThat(getClass().getResource("internal/Finalizer.class")).isNotNull(); } @Test public void testFinalizeClassHasNoNestedClasses() throws Exception { // Ensure that the Finalizer class has no nested classes.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 8.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/FinalizableReferenceQueueTest.java
} return clazz; } return super.loadClass(name, resolve); } } @Test public void testGetFinalizerUrl() { assertThat(getClass().getResource("internal/Finalizer.class")).isNotNull(); } @Test public void testFinalizeClassHasNoNestedClasses() throws Exception { // Ensure that the Finalizer class has no nested classes.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 8.7K bytes - Viewed (0) -
api/maven-api-di/src/main/java/org/apache/maven/di/tool/DiIndexProcessor.java
String existingContent = ""; // Try to read existing content try { FileObject inputFile = processingEnv.getFiler().getResource(StandardLocation.CLASS_OUTPUT, "", path); try (BufferedReader reader = new BufferedReader(new InputStreamReader(inputFile.openInputStream()))) { String line;
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Thu Apr 03 13:33:59 UTC 2025 - 7.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
public static String readText(final String path, final String encoding) { assertArgumentNotEmpty("path", path); assertArgumentNotEmpty("encoding", encoding); final URL url = ResourceUtil.getResource(path); if (url.getProtocol().equals("file")) { return readText(URLUtil.toFile(url), encoding); } final InputStream is = URLUtil.openStream(url); try {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 8.8K bytes - Viewed (0)