Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for FILE_SHARE_DELETE (0.09 sec)

  1. src/test/java/jcifs/SmbConstantsTest.java

            assertEquals(0x01, SmbConstants.FILE_SHARE_READ);
            assertEquals(0x02, SmbConstants.FILE_SHARE_WRITE);
            assertEquals(0x04, SmbConstants.FILE_SHARE_DELETE);
            assertEquals(SmbConstants.FILE_SHARE_READ | SmbConstants.FILE_SHARE_WRITE | SmbConstants.FILE_SHARE_DELETE,
                    SmbConstants.DEFAULT_SHARING);
        }
    
        @Test
        @DisplayName("Should define SMB resource type constants")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbConstants.java

         * this file is open. This constant may be logically OR'd with other share
         * access flags.
         */
        int FILE_SHARE_DELETE = 0x04;
        /**
         * Default sharing mode for files
         */
        int DEFAULT_SHARING = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE;
    
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java

        void testSetShareAccess() {
            request = new Smb2CreateRequest(mockConfig, "test.txt");
    
            int shareAccess = Smb2CreateRequest.FILE_SHARE_READ | Smb2CreateRequest.FILE_SHARE_WRITE | Smb2CreateRequest.FILE_SHARE_DELETE;
            request.setShareAccess(shareAccess);
    
            byte[] buffer = new byte[1024];
            request.writeBytesWireFormat(buffer, 0);
    
            // Read share access from buffer (offset 32-35)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

        /**
         * Enable other opens for write access
         */
        public static final int FILE_SHARE_WRITE = 0x2;
    
        /**
         * Enable other opens for delete access
         */
        public static final int FILE_SHARE_DELETE = 0x4;
    
        /**
         * If file exists, supersede it. Otherwise create the file
         */
        public static final int FILE_SUPERSEDE = 0x0;
        /**
         * If file exists, open it. Otherwise fail
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbFileOutputStream.java

        from jCIFS or another application will fail with the "file is being
        accessed by another process" error. The <code>FILE_SHARE_READ</code>,
        <code>FILE_SHARE_WRITE</code>, and <code>FILE_SHARE_DELETE</code> may be
        combined with the bitwise OR '|' to specify that other peocesses may read,
        write, and/or delete the file while the jCIFS user has the file open.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbFileTest.java

                verify(smbFile).openUnshared(0, // SmbConstants.O_RDONLY = 0x01, but SmbFileInputStream uses 0
                        SmbFile.O_RDONLY, SmbConstants.DEFAULT_SHARING, // 7 = FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE
                        SmbConstants.ATTR_NORMAL, // 128
                        0);
            }
    
            @Test
            void testGetOutputStream() throws IOException {
                // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K bytes
    - Viewed (0)
Back to top