Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for SmbRandomAccessFile (0.09 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

         * @throws UnknownHostException if the host cannot be resolved
         */
        public SmbRandomAccessFile(final String url, final String mode, final int shareAccess)
                throws SmbException, MalformedURLException, UnknownHostException {
            this(new SmbFile(url, "", null, shareAccess), mode);
        }
    
        /**
         * Constructs an SmbRandomAccessFile from an existing SmbFile with the specified access mode.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbRandomAccessFile.java

     * Provides random read/write access to SMB files with support for seeking and positioning.
     *
     */
    public class SmbRandomAccessFile implements SmbRandomAccess {
    
        private static final Logger log = LoggerFactory.getLogger(SmbRandomAccessFile.class);
        private static final int WRITE_OPTIONS = 0x0842;
    
        private final SmbFile file;
        private long fp;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            smbRandomAccessFile = new SmbRandomAccessFile(smbFile, "rw");
        }
    
        @Test
        void testConstructor() throws SmbException {
            assertNotNull(smbRandomAccessFile);
            assertEquals(0, smbRandomAccessFile.getFilePointer());
        }
    
        @Test
        void testGetFilePointer() throws SmbException {
            assertEquals(0, smbRandomAccessFile.getFilePointer());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

    import jcifs.internal.smb2.info.Smb2SetInfoRequest;
    
    /**
     * Tests for SmbRandomAccessFile covering happy paths, edge cases, and interactions.
     */
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    public class SmbRandomAccessFileTest {
    
        // Helper: build a minimally wired instance with mocks; avoids real I/O
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFile.java

        }
    
        @Override
        public SmbRandomAccessFile openRandomAccess(final String mode) throws SmbException {
            return new SmbRandomAccessFile(this, mode);
        }
    
        @Override
        public SmbRandomAccessFile openRandomAccess(final String mode, final int sharing) throws SmbException {
            return new SmbRandomAccessFile(this, mode, sharing, false);
        }
    
    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