Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getInitialSize (0.08 sec)

  1. src/test/java/jcifs/SmbFileHandleTest.java

        }
    
        /**
         * Test getInitialSize() when the size is zero.
         */
        @Test
        void testGetInitialSize_zero() {
            long expectedSize = 0L;
            when(smbFileHandle.getInitialSize()).thenReturn(expectedSize);
            long actualSize = smbFileHandle.getInitialSize();
            assertEquals(expectedSize, actualSize, "getInitialSize should return 0 for an empty file.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/SmbFileHandle.java

         */
        void release() throws CIFSException;
    
        /**
         * Returns the initial size of the file when it was opened
         *
         * @return the file size when it was opened
         */
        long getInitialSize();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbFileHandleImpl.java

                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fileId;
        }
    
        /**
         * @return the initialSize
         */
        @Override
        public long getInitialSize() {
            return this.initialSize;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbFileHandle#getTree()
         */
        @Override
        public SmbTreeHandleImpl getTree() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
Back to top