Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for clearAttributeCache (0.3 sec)

  1. 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)
  2. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

                    SmbConstants.DEFAULT_SHARING);
    
            // When
            outputStream.close();
    
            // Then
            verify(mockFileHandle).close();
            verify(mockFile).clearAttributeCache();
            assertFalse(outputStream.isOpen());
        }
    
        @Test
        void testIsOpen() throws CIFSException {
            // Given
            when(mockTreeHandle.isSMB2()).thenReturn(true);
    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/smb/SmbFileOutputStream.java

        public void close() throws IOException {
            try {
                if (this.handle.isValid()) {
                    this.handle.close();
                }
            } finally {
                this.file.clearAttributeCache();
                this.tmp = null;
            }
        }
    
        /**
         * Writes the specified byte to this file output stream.
         *
         * @throws IOException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                    } catch (final CIFSException e) {
                        throw SmbException.wrap(e);
                    }
                    this.handle = null;
                }
            } finally {
                this.file.clearAttributeCache();
                if (this.unsharedFile) {
                    this.file.close();
                }
            }
        }
    
        @Override
        public int read() throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

                }
    
                dest.clearAttributeCache();
            } catch (SmbException e) {
                throw new CIFSException("Failed to copy resource: " + e.getMessage(), e);
            } catch (Exception e) {
                throw new CIFSException("Unexpected error during recursive copy", e);
            }
        }
    
        /**
         *
         */
        void clearAttributeCache() {
            this.attrExpiration = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 103.2K bytes
    - Viewed (0)
Back to top