Package jcifs.smb

Examples of jcifs.smb.SmbRandomAccessFile.seek()


        byte[] buf = new byte[BUFFER_SIZE];

        SmbRandomAccessFile raf = new SmbRandomAccessFile(smbFile, "r");

        raf.seek(fileOffset);

        int bc;
        int rem = dest.remaining();
        while ((bc = raf.read(buf)) > 0 && rem > 0) {
            dest.put(buf, 0, Math.min(bc, dest.remaining()));
View Full Code Here


        SmbRandomAccessFile raf = new SmbRandomAccessFile(smbFile, "rw");

        if (fileOffset > raf.length())
            raf.setLength(fileOffset);

        raf.seek(fileOffset);

        byte[] buf = new byte[BUFFER_SIZE];

        while (src.remaining() > 0) {
            int bc = Math.min(BUFFER_SIZE, src.remaining());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.