Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for setReadOnly (0.13 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/SmbResource.java

         * getAttributes() | ATTR_READ_ONLY )</code>.
         *
         * @throws CIFSException if an error occurs modifying the resource
         */
        void setReadOnly() throws CIFSException;
    
        /**
         * Set the attributes of this file. Attributes are composed into a
         * bitset by bitwise ORing the <code>ATTR_*</code> constants. Setting the
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 28K bytes
    - Click Count (1)
  2. src/test/java/jcifs/smb/SmbFileTest.java

                // Arrange
                doReturn(SmbConstants.ATTR_NORMAL).when(smbFile).getAttributes();
                doNothing().when(smbFile).setAttributes(anyInt());
    
                // Act
                smbFile.setReadOnly();
    
                // Assert
                verify(smbFile).setAttributes(SmbConstants.ATTR_NORMAL | SmbConstants.ATTR_READONLY);
            }
    
            @Test
            void testSetReadWrite() throws SmbException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            assertTrue(lastModified > 0, "Last modified time should be set");
            assertTrue(lastAccess >= 0, "Last access time should be non-negative");
    
            // Test setting attributes
            file.setReadOnly();
            assertFalse(file.canWrite(), "Should not be writable when read-only");
    
            file.setReadWrite();
            assertTrue(file.canWrite(), "Should be writable after setReadWrite");
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 56K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/SmbFile.java

         * getAttributes() | ATTR_READ_ONLY )}.
         *
         * @throws SmbException if an error occurs while setting the read-only flag
         */
        public void setReadOnly() throws SmbException {
            setAttributes(getAttributes() | ATTR_READONLY);
        }
    
        /**
         * Turn off the read-only attribute of this file. This is shorthand for
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb/SmbFile.java

            } catch (final CIFSException e) {
                throw SmbException.wrap(e);
            }
        }
    
        @Override
        public void setReadOnly() throws SmbException {
            setAttributes(getAttributes() | ATTR_READONLY);
        }
    
        @Override
        public void setReadWrite() throws SmbException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 103.2K bytes
    - Click Count (0)
Back to Top