Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

        @Test
        void testConstructor() throws SmbException {
            assertNotNull(smbRandomAccessFile);
            assertEquals(0, smbRandomAccessFile.getFilePointer());
        }
    
        @Test
        void testGetFilePointer() throws SmbException {
            assertEquals(0, smbRandomAccessFile.getFilePointer());
        }
    
        @Test
        void testSeek() throws SmbException {
            long newPosition = 100L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. 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)
  3. src/main/java/jcifs/SmbRandomAccess.java

         */
        int read(byte[] b, int off, int len) throws SmbException;
    
        /**
         * Current position in file
         *
         * @return current position
         */
        long getFilePointer();
    
        /**
         * Seek to new position
         *
         * @param pos the new position to seek to
         */
        void seek(long pos);
    
        /**
         * Get the current file length
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  4. 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)
  5. 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