Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 603 for resource (0.04 sec)

  1. okhttp/src/jvmMain/resources/META-INF/native-image/okhttp/okhttp/resource-config.json

    {
      "resources": [
        {"pattern": "okhttp3/internal/publicsuffix/PublicSuffixDatabase.list"}
      ]
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 22:00:49 UTC 2025
    - 100 bytes
    - Viewed (0)
  2. 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
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/ResourceManager.java

        }
    
        /**
         * Create a managed resource wrapper
         *
         * @param <T> resource type
         * @param resource the resource to wrap
         * @return managed resource
         */
        public <T extends AutoCloseable> ManagedResource<T> manage(T resource) {
            String resourceId = registerResource(resource);
            return new ManagedResource<>(resource, resourceId, this);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/ResourceManagerTest.java

        }
    
        @Test
        @DisplayName("Test resource close tracking")
        void testResourceCloseTracking() throws Exception {
            TestResource resource = new TestResource("test2");
            String resourceId = resourceManager.registerResource(resource);
    
            resource.close();
            resourceManager.markClosed(resourceId);
    
            Map<String, Object> stats = resourceManager.getStatistics();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. cmd/local-locker.go

    	}
    
    	// No locks held on the all resources, so claim write
    	// lock on all resources at once.
    	now := UTCNow()
    	for i, resource := range args.Resources {
    		l.lockMap[resource] = []lockRequesterInfo{
    			{
    				Name:            resource,
    				Writer:          true,
    				Source:          args.Source,
    				Owner:           args.Owner,
    				UID:             args.UID,
    				Timestamp:       now.UnixNano(),
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12K bytes
    - Viewed (0)
  6. src/test/java/jcifs/context/BaseContextTest.java

            // Then
            assertNotNull(resource1, "First resource should be created");
            assertNotNull(resource2, "Second resource should be created");
            assertNotNull(pipe1, "First pipe should be created");
            assertNotNull(pipe2, "Second pipe should be created");
    
            assertNotSame(resource1, resource2, "Different resources should be different instances");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  7. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbResourceException.java

            this.requestedResources = -1;
        }
    
        /**
         * Creates a resource exception with resource details
         *
         * @param message the error message
         * @param errorCode the SMB error code
         * @param resourceType the type of resource
         * @param available available resources
         * @param requested requested resources
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  10. 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);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.1K bytes
    - Viewed (0)
Back to top