Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for openRandomAccess (0.07 sec)

  1. src/test/java/jcifs/tests/RandomAccessFileTest.java

                try {
                    int bufSize = 64 * 1024 + 512;
                    int l = bufSize;
                    try ( SmbRandomAccess raf = f.openRandomAccess("rw") ) {
                        writeRandom(bufSize, l, raf);
                    }
    
                    try ( SmbRandomAccess raf = f.openRandomAccess("rw") ) {
                        verifyRandom(bufSize, l, raf);
                    }
                }
                finally {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/FileOperationsTest.java

                    try ( SmbFile d1 = createTestDirectory();
                          SmbFile t = new SmbFile(d1, makeRandomName()) ) {
                        try {
                            try ( SmbRandomAccessFile ra = f.openRandomAccess("rw") ) {
                                ra.setLength(length);
                            }
    
                            f.copyTo(t);
                            assertTrue(f.exists());
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:17:59 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbResource.java

         * 
         */
        SmbRandomAccess openRandomAccess ( String mode, int sharing ) throws CIFSException;
    
    
        /**
         * Opens the file for random access
         * 
         * @param mode
         *            access mode (r|rw)
         * @return random access file, needs to be closed when finished
         * @throws CIFSException
         */
        SmbRandomAccess openRandomAccess ( String mode ) throws CIFSException;
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 26K bytes
    - Viewed (1)
  4. src/main/java/jcifs/smb/SmbFile.java

        }
    
    
        @Override
        public SmbRandomAccessFile openRandomAccess ( String mode ) throws SmbException {
            return new SmbRandomAccessFile(this, mode);
        }
    
    
        @Override
        public SmbRandomAccessFile openRandomAccess ( String mode, int sharing ) throws SmbException {
            return new SmbRandomAccessFile(this, mode, sharing, false);
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
Back to top