Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getFilePointer (0.07 sec)

  1. src/test/java/jcifs/smb/SmbRandomAccessFileTest.java

            SmbRandomAccessFile raf = newInstance("r", false, false, false);
            assertEquals(0L, raf.getFilePointer());
            int skipped = raf.skipBytes(5);
            assertEquals(5, skipped);
            assertEquals(5L, raf.getFilePointer());
            assertEquals(0, raf.skipBytes(-3));
        }
    
        @Test
        @DisplayName("seek() and getFilePointer(): set and get position")
        void seek_and_getFilePointer() 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/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        }
    
        /**
         * Returns the current position of the file pointer.
         *
         * @return the current file pointer position
         * @throws SmbException if an I/O error occurs
         */
        public long getFilePointer() throws SmbException {
            return fp;
        }
    
        /**
         * Sets the file pointer to the specified position.
         *
         * @param pos the new file pointer position
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                    off += cnt;
                } while (len > 0);
            } catch (final CIFSException e) {
                throw SmbException.wrap(e);
            }
        }
    
        @Override
        public long getFilePointer() {
            return this.fp;
        }
    
        @Override
        public void seek(final long pos) {
            this.fp = pos;
        }
    
        @Override
        public long length() 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)
Back to top