- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 1,612 for Resource (0.07 seconds)
-
src/test/java/jcifs/SmbResourceTest.java
assertTrue(resource.exists(), "Resource should exist"); assertTrue(resource.isFile(), "Should be a file"); assertTrue(resource.canWrite(), "Should be writable"); // Should be able to perform file operations assertDoesNotThrow(() -> { resource.setReadOnly(); resource.setReadWrite(); resource.setAttributes(0x20);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 35K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/TransferListenerAdapter.java
private ArtifactTransferResource wrap(Repository repository, Resource resource) { if (resource == null) { return null; } else { synchronized (artifacts) { ArtifactTransferResource artifact = artifacts.get(resource); if (artifact == null) { artifact = new MavenArtifact(repository.getUrl(), resource); artifacts.put(resource, artifact);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 5.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ResourcesTest.java
assertThat(Resources.toString(resource, UTF_8)).isEqualTo(I18N); assertThat(Resources.toString(resource, US_ASCII)).isNotEqualTo(I18N); } public void testToByteArray() throws IOException { URL resource = getClass().getResource("testdata/i18n.txt"); assertThat(Resources.toByteArray(resource)).isEqualTo(I18N.getBytes(UTF_8)); } public void testReadLines() throws IOException {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/ResourceBundleUtil.java
} catch (final MissingResourceException ignore) { return null; } } /** * Returns the string for the specified key from the resource bundle. * * @param bundle the resource bundle (must not be {@literal null} or empty) * @param key the key * @return the string for the specified key (must not be {@literal null} or empty)
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 5.3K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Resources.java
* this class ({@code Resources}) will be used instead. * * @throws IllegalArgumentException if the resource is not found */ @CanIgnoreReturnValue // being used to check if a resource exists // TODO(cgdecker): maybe add a better way to check if a resource exists // e.g. Optional<URL> tryGetResource or boolean resourceExists
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 7.4K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
import java.nio.charset.StandardCharsets; import org.junit.Test; /** * Test class for resource loading functionality in Suggester class. * * Tests cover: * - Successful resource loading * - Missing resource error handling * - Resource content validation * - InputStream null safety in try-with-resources */ public class SuggesterResourceLoadingTest { /**Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 9.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessApiFailureHook.java
@Override public ApiResponse handleValidationError(final ApiFailureResource resource) { return asJson(createFailureBean(Status.BAD_REQUEST, createMessage(resource, null))).httpStatus(HTTP_BAD_REQUEST); } @Override public ApiResponse handleApplicationException(final ApiFailureResource resource, final RuntimeException cause) { if (cause instanceof LoginUnauthorizedException) {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 5.8K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/ResourceUtil.java
return getResource(path, null); } /** * Returns the resource from the context class loader. * * @param path * The resource path. Must not be {@literal null} or empty string. * @param extension * The resource extension. * @return The resource {@link URL} */ public static URL getResource(final String path, final String extension) {Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 14.7K bytes - Click Count (0) -
cmd/admin-handlers_test.go
locksHeld[resource] = []lockRequesterInfo{lri} } // Add a few concurrent read locks to the mix for i := range 50 { resource := fmt.Sprintf("bucket/get-object-%d", i) lri := lockRequesterInfo{ Name: resource, UID: mustGetUUID(), Owner: owners[i%len(owners)], Quorum: 2, } lris = append(lris, lri) locksHeld[resource] = append(locksHeld[resource], lri)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 13.9K bytes - Click Count (1) -
src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java
assertTrue(iterator.hasNext()); assertSame(resource, iterator.next()); assertTrue(iterator.hasNext()); assertSame(resource, iterator.next()); assertTrue(iterator.hasNext()); assertSame(resource, iterator.next()); assertFalse(iterator.hasNext()); assertNull(iterator.next()); verify(resource, never()).close(); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 10.6K bytes - Click Count (0)