Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 653 for HANDLE (0.61 sec)

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

         *
         * @return whether the stream is open
         */
        public boolean isOpen() {
            return this.handle != null && this.handle.isValid();
        }
    
        /**
         * Ensures that the file handle is open and returns it.
         *
         * @return the open file handle
         * @throws CIFSException if an error occurs opening the file
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                this.output.close();
                this.output = null;
            }
    
            try {
                if (wasOpen) {
                    this.handle.close();
                } else if (this.handle != null) {
                    this.handle.release();
                }
                this.handle = null;
            } finally {
                if (this.treeHandle != null) {
                    this.treeHandle.release();
                }
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseStateTest.java

            assertEquals(Smb2LeaseState.SMB2_LEASE_FULL, fullLease);
        }
    
        @Test
        @DisplayName("Should handle custom state combinations")
        void testCustomStateCombinations() {
            int customState = 0x06; // Write + Handle but no Read
    
            assertFalse(Smb2LeaseState.hasReadCaching(customState));
            assertTrue(Smb2LeaseState.hasWriteCaching(customState));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                try {
                    digest.verify(data, 0, data.length, 0, response);
                    // If no exception is thrown, verification should return false or handle gracefully
                    assertTrue(true, "Verify operation after close should either throw exception or handle gracefully");
                } catch (RuntimeException e) {
                    // Accept runtime exceptions that might be thrown due to closed state
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb2CancelRequestTest.java

            // Then
            assertEquals(maxMid, request.getMid(), "Should handle maximum MID");
            assertEquals(maxAsyncId, request.getAsyncId(), "Should handle maximum AsyncId");
            assertEquals(maxCredits, request.getCredit(), "Should handle maximum credits");
            assertEquals(maxTreeId, request.getTreeId(), "Should handle maximum tree ID");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/msrpc/MsrpcLsarClose.java

    /**
     * Microsoft RPC LSA close handle request.
     * This class implements the LSARPC close handle operation.
     */
    public class MsrpcLsarClose extends LsarClose {
    
        /**
         * Creates a new request to close an LSA policy handle.
         *
         * @param handle the policy handle to close
         */
        public MsrpcLsarClose(final policy_handle handle) {
            super(handle);
            this.ptype = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/msrpc/MsrpcSamrOpenAlias.java

    package jcifs.dcerpc.msrpc;
    
    /**
     * MSRPC implementation for opening an alias handle.
     * This class provides functionality to open a handle to a SAM alias
     * (local group) using the SAMR RPC interface.
     */
    public class MsrpcSamrOpenAlias extends samr.SamrOpenAlias {
    
        /**
         * Creates a new request to open an alias handle.
         *
         * @param handle the domain handle
         * @param access the desired access rights
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/SmbFileHandleTest.java

        }
    
        /**
         * Test isValid() when the handle is valid.
         */
        @Test
        void testIsValid_whenValid() {
            when(smbFileHandle.isValid()).thenReturn(true);
            assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid.");
            verify(smbFileHandle, times(1)).isValid();
        }
    
        /**
         * Test isValid() when the handle is invalid.
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/msrpc/MsrpcSamrOpenDomain.java

     *
     * This class implements the SAMR OpenDomain operation for obtaining
     * a handle to a specific domain in the Security Account Manager.
     */
    public class MsrpcSamrOpenDomain extends samr.SamrOpenDomain {
    
        /**
         * Creates a new request to open a domain handle.
         *
         * @param handle the SAM policy handle
         * @param access the desired access rights
         * @param sid the security identifier of the domain
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/util/MimeMapTest.java

                assertEquals("application/octet-stream", mimeMap.getMimeType("doesnotexist"));
            }
    
            @Test
            @DisplayName("Should handle case insensitive extensions")
            void testCaseInsensitiveExtensions() throws IOException {
                assertEquals("application/pdf", mimeMap.getMimeType("PDF"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.1K bytes
    - Viewed (0)
Back to top