Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 790 for _close (0.07 sec)

  1. src/main/java/jcifs/smb/SmbPipeOutputStream.java

         *
         * @return the handle
         */
        protected SmbPipeHandleImpl getHandle() {
            return this.handle;
        }
    
        @Override
        public void close() {
            // ignore, the shared file descriptor is closed by the pipe handle
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/SocketInputStream.java

        public int available() throws IOException {
            if (bip > 0) {
                return bip;
            }
            return in.available();
        }
    
        @Override
        public void close() throws IOException {
            in.close();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/ResponseCommonTest.kt

       * most [BufferedSource] instances, but not of [Buffer].
       */
      private fun responseBody(content: String): ResponseBody {
        val data = Buffer().writeUtf8(content)
        val source: Source =
          object : Source {
            var closed = false
    
            override fun close() {
              closed = true
            }
    
            override fun read(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            // Act
            raf.close();
    
            // Assert interactions
            verify(handle, atLeastOnce()).close();
            verify(file, times(1)).clearAttributeCache();
            verify(file, never()).close();
        }
    
        @Test
        @DisplayName("close(): closes SmbFile when unsharedFile=true")
        void close_unsharedFile_closesFile() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/SocketFailureTest.kt

              .build(),
          )
    
        val exception =
          assertFailsWith<IOException> {
            call2.execute()
          }
        assertThat(exception.message).isIn("Socket closed", "Socket is closed")
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. internal/stmt_store/stmt_store.go

    	*sql.Stmt
    	Transaction bool
    	prepared    chan struct{}
    	prepareErr  error
    }
    
    func (stmt *Stmt) Error() error {
    	return stmt.prepareErr
    }
    
    func (stmt *Stmt) Close() error {
    	<-stmt.prepared
    
    	if stmt.Stmt != nil {
    		return stmt.Stmt.Close()
    	}
    	return nil
    }
    
    // Store defines an interface for managing the caching operations of SQL statements (Stmt).
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Sun Apr 27 06:05:16 UTC 2025
    - 6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            // After last element, hasNext should be false and calling close() should send Smb2CloseRequest once
            assertFalse(it.hasNext(), "Iterator should be exhausted");
    
            // Close explicitly to exercise doCloseInternal
            it.close();
    
            // Verify interactions: one create, two additional directory queries (for fetchMore), one close
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/msrpc/SamrAliasHandle.java

            if (rpc.retval != 0) {
                throw new SmbException(rpc.retval, false);
            }
        }
    
        /**
         * Closes this SAM alias handle.
         *
         * @throws IOException if an I/O error occurs during handle closure
         */
        public void close() throws IOException {
            final MsrpcSamrCloseHandle rpc = new MsrpcSamrCloseHandle(this);
            handle.sendrecv(rpc);
            if (rpc.retval != 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/CharSourceTest.java

        StringWriter writer = new StringWriter();
        char[] buf = new char[64];
        int read;
        while ((read = reader.read(buf)) != -1) {
          writer.write(buf, 0, read);
        }
        reader.close();
        writer.close();
    
        assertTrue(source.wasStreamClosed());
        assertEquals(STRING, writer.toString());
      }
    
      public void testLines() throws IOException {
        source = new TestCharSource(LINES);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NetServerEnumIterator.java

                if (ne == null) {
                    doClose();
                    return n;
                }
                this.next = ne;
            } catch (final CIFSException e) {
                log.warn("Enumeration failed", e);
                this.next = null;
            }
            return n;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CloseableIterator#close()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
Back to top