Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getFilePointer (0.09 sec)

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

                        writeRandom(bufSize, l, raf);
                        assertEquals(l, raf.getFilePointer());
                        raf.seek(0);
                        assertEquals(0, raf.getFilePointer());
                        verifyRandom(bufSize, l, raf);
                        assertEquals(l, raf.getFilePointer());
                    }
                    assertEquals(l, f.length());
                }
                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/main/java/jcifs/SmbRandomAccess.java

         * @throws SmbException
         */
        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
         */
        void seek ( long pos );
    
    
        /**
         * Get the current file length
         * 
         * @return file length
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

                fp += write_andx_resp.count;
                len -= write_andx_resp.count;
                off += write_andx_resp.count;
            } while( len > 0 );
        }
        public long getFilePointer() throws SmbException {
            return fp;
        }
        public void seek( long pos ) throws SmbException {
            fp = pos;
        }
        public long length() throws SmbException {
            return file.length();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbRandomAccessFile.java

                }
                while ( len > 0 );
            }
            catch ( CIFSException e ) {
                throw SmbException.wrap(e);
            }
        }
    
    
        @Override
        public long getFilePointer () {
            return this.fp;
        }
    
    
        @Override
        public void seek ( long pos ) {
            this.fp = pos;
        }
    
    
        @Override
        public long length () throws SmbException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
Back to top