Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for AutoCloseable (0.07 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/main/java/jcifs/SmbTree.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs;
    
    /**
     * Opaque reference to a SMB tree
     *
     * @author mbechler
     *
     */
    public interface SmbTree extends AutoCloseable {
    
        /**
         * Unwraps the tree instance to the specified type
         * @param <T> the target tree type
         * @param type the class of the tree type to unwrap to
         * @return tree instance with the given type
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/jcifs/SmbSession.java

     */
    package jcifs;
    
    /**
     * Opaque reference to a SMB session
     *
     * @author mbechler
     */
    public interface SmbSession extends AutoCloseable {
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        void close();
    
        /**
         * Returns the configuration object used by this SMB session.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/CloseableIterator.java

    package jcifs;
    
    import java.util.Iterator;
    
    /**
     * An iterator that implements AutoCloseable to allow resource cleanup.
     * This interface combines Iterator functionality with automatic resource management.
     *
     * @param <T> the type of elements returned by this iterator
     * @author mbechler
     */
    public interface CloseableIterator<T> extends Iterator<T>, AutoCloseable {
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbPipeHandle.java

     */
    package jcifs;
    
    import java.io.InputStream;
    import java.io.OutputStream;
    
    /**
     * Handle to an open named pipe
     *
     * @author mbechler
     *
     */
    public interface SmbPipeHandle extends AutoCloseable {
    
        /**
         * Gets the pipe resource associated with this handle.
         *
         * @return the pipe
         */
        SmbPipeResource getPipe();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/SmbTreeHandle.java

     *
     * @author mbechler
     *
     */
    public interface SmbTreeHandle extends AutoCloseable {
    
        /**
         * Gets the active configuration for this tree handle
         * @return the active configuration
         */
        Configuration getConfig();
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        void close() throws CIFSException;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbWatchHandle.java

    import java.util.List;
    import java.util.concurrent.Callable;
    
    /**
     * Handle for receiving change notifications from an SMB server
     *
     *
     * @author mbechler
     *
     */
    public interface SmbWatchHandle extends AutoCloseable, Callable<List<FileNotifyInformation>> {
    
        /**
         * Get the next set of changes
         *
         * Will block until the server returns a set of changes that match the given filter. The file will be automatically
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/CloseableIteratorTest.java

            // Then
            verify(mockIterator).close();
        }
    
        @Test
        @DisplayName("Should extend Iterator and AutoCloseable")
        void testInterfaceInheritance() {
            // Then
            assertTrue(java.util.Iterator.class.isAssignableFrom(CloseableIterator.class));
            assertTrue(AutoCloseable.class.isAssignableFrom(CloseableIterator.class));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 964 bytes
    - Viewed (0)
Back to top