Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SmbRandomAccessFile (0.1 sec)

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

    import jcifs.internal.smb2.io.Smb2WriteResponse;
    import jcifs.util.Encdec;
    
    
    /**
     * 
     * 
     *
     */
    public class SmbRandomAccessFile implements SmbRandomAccess {
    
        private static final Logger log = LoggerFactory.getLogger(SmbRandomAccessFile.class);
        private static final int WRITE_OPTIONS = 0x0842;
    
        private SmbFile file;
        private long fp;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Wed Jan 08 12:01:33 UTC 2020
    - 18.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        private SmbComWriteAndXResponse write_andx_resp = null;
    
        public SmbRandomAccessFile( String url, String mode, int shareAccess )
                throws SmbException, MalformedURLException, UnknownHostException {
            this( new SmbFile( url, "", null, shareAccess ), mode );
        }
        public SmbRandomAccessFile( SmbFile file, String mode )
                throws SmbException, MalformedURLException, UnknownHostException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/RandomAccessFileTest.java

                        });
                    }
    
                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "r") ) {
                        raf.seek(10);
                        Assert.assertEquals(-1, raf.read());
                    }
    
                    byte[] buf = new byte[4];
                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "r") ) {
                        raf.seek(6);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/ReadWriteTest.java

        @Test
        public void testRandomAccess () throws CIFSException, MalformedURLException, UnknownHostException {
            try ( SmbFile f = createTestFile() ) {
                try {
                    try ( SmbRandomAccessFile raf = new SmbRandomAccessFile(f, "rw") ) {
    
                    }
                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        private String getFifoPipeUrl () {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 13.2K bytes
    - Viewed (0)
  5. 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)
  6. 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