Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 82 for AutoCloseable (0.04 sec)

  1. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertNotNull(passwordArray);
            assertArrayEquals("TestPass123!".toCharArray(), passwordArray);
        }
    
        /**
         * Test AutoCloseable implementation
         */
        @Test
        @DisplayName("Test AutoCloseable with try-with-resources")
        public void testAutoCloseable() {
            char[] testPassword = "AutoClosePass123!".toCharArray();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/msrpc/SamrDomainHandle.java

     * This class represents an open handle to a SAM domain and provides
     * operations for managing domain users, groups, and aliases.
     */
    public class SamrDomainHandle extends rpc.policy_handle implements AutoCloseable {
    
        private final DcerpcHandle handle;
        private boolean opened;
    
        /**
         * Creates a new SAM domain handle.
         *
         * @param handle the DCE/RPC handle for communication
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/ContainerCapsule.java

    import java.util.Optional;
    
    import org.apache.maven.api.annotations.Nonnull;
    import org.apache.maven.api.services.Lookup;
    
    /**
     * Container capsule.
     */
    public interface ContainerCapsule extends AutoCloseable {
        /**
         * Updates the existing capsule logging setup.
         */
        void updateLogging(LookupContext context);
    
        /**
         * The {@link Lookup} service backed by container in this capsule.
         */
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 31 20:56:58 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/EmptyIteratorTest.java

            assertTrue(emptyIterator instanceof Iterator, "Should implement Iterator");
            assertTrue(emptyIterator instanceof AutoCloseable, "Should implement AutoCloseable");
        }
    
        @Test
        @DisplayName("hasNext should always return false")
        void testHasNextAlwaysReturnsFalse() {
            // When & Then
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/FileEntryAdapterIterator.java

            final SmbResource n = this.next;
            this.next = advance();
            return n;
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws CIFSException
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        public void close() throws CIFSException {
            this.delegate.close();
        }
    
        @Override
        public void remove() {
            this.delegate.remove();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java

    import jakarta.annotation.PostConstruct;
    import jakarta.annotation.Resource;
    
    /**
     * A factory class for managing and creating crawler clients based on URL patterns.
     * This class implements AutoCloseable to properly handle resource cleanup.
     *
     * <p>The factory maintains a map of regular expression patterns to crawler clients,
     * allowing for URL-based client selection. Clients can be added with specific patterns
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbResourceTest.java

        class InterfaceContractTests {
    
            @Test
            @DisplayName("SmbResource should extend AutoCloseable")
            void testInterfaceInheritance() {
                // Then
                assertTrue(AutoCloseable.class.isAssignableFrom(SmbResource.class), "SmbResource should extend AutoCloseable");
            }
    
            @Test
            @DisplayName("SmbResource should have all required methods")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/msrpc/LsaPolicyHandle.java

    import jcifs.dcerpc.rpc;
    import jcifs.smb.SmbException;
    
    /**
     * LSA policy handle for Local Security Authority operations.
     */
    public class LsaPolicyHandle extends rpc.policy_handle implements AutoCloseable {
    
        private final DcerpcHandle handle;
        private boolean opened;
    
        /**
         * Constructs an LSA policy handle.
         *
         * @param handle the DCERPC handle
         * @param server the server name
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. CLAUDE.md

    - `AtomicLong` for counters (`CrawlerContext.accessCount`)
    - `volatile` for status flags
    - Synchronized blocks for critical sections
    - Thread-local storage via `CrawlingParameterUtil`
    
    **Resource Management**:
    - `AutoCloseable` throughout
    - `DeferredFileOutputStream` for large responses (temp files for >1MB)
    - Connection pooling with limits
    - Background temp file deletion via `FileUtil.deleteInBackground()`
    
    **Fault Tolerance**:
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Fri Nov 28 17:31:34 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/msrpc/SamrAliasHandle.java

     * This class represents an open handle to a SAM alias and provides
     * operations for managing alias membership and properties.
     */
    public class SamrAliasHandle extends rpc.policy_handle implements AutoCloseable {
    
        private final DcerpcHandle handle;
        private boolean opened;
    
        /**
         * Creates a new SAM alias handle.
         *
         * @param handle the DCE/RPC handle for communication
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top