Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for AutoCloseable (0.18 sec)

  1. src/main/java/jcifs/util/ResourceManager.java

            final String resourceType;
            final WeakReference<AutoCloseable> resourceRef;
            final PhantomReference<AutoCloseable> phantomRef;
            final long creationTime;
            final StackTraceElement[] allocationStackTrace;
            volatile boolean closed;
    
            ResourceHolder(String resourceId, AutoCloseable resource, ReferenceQueue<AutoCloseable> queue) {
                this.resourceId = resourceId;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            assertNotNull(outputStream);
    
            // Verify the AutoCloseable resources were closed
            verify(autoCloseableMockTreeHandle).close();
            verify(autoCloseableMockFileHandle).close();
        }
    
        @Test
        void testConstructorWithAppendFlag() throws IOException, CIFSException {
            // Given
            // Mock the AutoCloseable tree handle behavior
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbSessionTest.java

    class SmbSessionTest {
    
        @Nested
        @DisplayName("AutoCloseable Contract Tests")
        class AutoCloseableContractTest {
    
            @Test
            @DisplayName("Should implement AutoCloseable interface")
            void shouldImplementAutoCloseable() {
                assertTrue(AutoCloseable.class.isAssignableFrom(SmbSession.class), "SmbSession should implement AutoCloseable interface");
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  5. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 35K bytes
    - Viewed (0)
  6. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/Crawler.java

     * including adding URLs to the queue, filtering URLs, managing crawler threads,
     * and handling the overall crawling lifecycle.
     *
     * <p>It implements the Runnable interface to be executed in a separate thread,
     * and the AutoCloseable interface to ensure resources are properly released after use.
     *
     * <p>The crawler uses several services and components, such as UrlQueueService, DataService,
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 14K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeConnection.java

        /**
         * Close the tree connection (implements AutoCloseable)
         *
         * This method provides a standard way to close resources using try-with-resources.
         * It delegates to the release() method to properly clean up the connection.
         */
        @Override
        public void close() {
            if (log.isDebugEnabled()) {
                log.debug("Closing SmbTreeConnection via AutoCloseable.close()");
            }
            release();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  9. src/main/java/jcifs/util/transport/Transport.java

     */
    
    /**
     * Abstract base class for network transport implementations in JCIFS.
     * This class handles the low-level transport protocol for SMB communication.
     */
    public abstract class Transport implements Runnable, AutoCloseable {
    
        /**
         * Default constructor for Transport
         */
        protected Transport() {
            // Default constructor
        }
    
        private static int id = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/SecureCredentialStorage.java

     * - Uses PBKDF2 for key derivation from master password
     * - Secure wiping of sensitive data
     * - Thread-safe operations
     * - Protection against timing attacks
     */
    public class SecureCredentialStorage implements AutoCloseable, Destroyable {
    
        private static final Logger log = LoggerFactory.getLogger(SecureCredentialStorage.class);
    
        private static final String ENCRYPTION_ALGORITHM = "AES/GCM/NoPadding";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top