Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 65 for AutoCloseable (0.07 sec)

  1. 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)
  2. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbRandomAccess.java

    import jcifs.smb.SmbException;
    
    /**
     * File access that exposes random access semantics
     *
     * @author mbechler
     *
     */
    public interface SmbRandomAccess extends DataOutput, DataInput, AutoCloseable {
    
        /**
         * Close the file
         *
         * @throws SmbException if an I/O error occurs during close
         */
        @Override
        void close() throws SmbException;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/msrpc/SamrPolicyHandle.java

     * This class represents an open handle to a SAM server and provides
     * high-level access to SAM database operations.
     */
    public class SamrPolicyHandle extends rpc.policy_handle implements AutoCloseable {
    
        private final DcerpcHandle handle;
        private boolean opened;
    
        /**
         * Creates a new SAM policy handle.
         *
         * @param handle the DCE/RPC handle for communication
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java

     * RDMA operations. The memory region contains a buffer, access
     * permissions, and keys for local and remote access.
     */
    public abstract class RdmaMemoryRegion implements AutoCloseable {
    
        /** Memory buffer for RDMA operations */
        protected final ByteBuffer buffer;
        /** Access permissions for this memory region */
        protected final EnumSet<RdmaAccess> accessFlags;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

         * its parameter type is {@code Object}, not {@code AutoCloseable} or {@code Closeable}.
         *
         * @param closeable the object to be closed (see notes above)
         * @param closingExecutor the object will be closed on this executor
         * @return the first argument
         */
        @CanIgnoreReturnValue
        @ParametricNullness
        public <C extends @Nullable Object & @Nullable AutoCloseable> C eventuallyClose(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 23 15:26:56 UTC 2025
    - 97.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            session.acquire();
    
            // Should handle exceptions gracefully
            assertDoesNotThrow(() -> session.release());
        }
    
        /**
         * Test AutoCloseable pattern
         */
        @Test
        @Timeout(5)
        public void testAutoCloseablePattern() throws Exception {
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

                    log.debug("Failed to close enum", e);
                }
            }
            return n;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        public void close() throws CIFSException {
            if (this.next != null) {
                doClose();
            }
        }
    
        @Override
        public void remove() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.7K bytes
    - Viewed (0)
Back to top