Package org.jnode.net.nfs.nfs2

Examples of org.jnode.net.nfs.nfs2.NFS2Client.writeFile()


            byte[] data = new byte[NFS2Client.MAX_DATA];
            int count;
            while (src.remaining() > 0) {
                count = Math.min(NFS2Client.MAX_DATA, src.remaining());
                src.get(data, 0, count);
                client.writeFile(entry.getFileHandle(), (int) fileOffset, data, 0, count);
                fileOffset += count;
            }
        } catch (NFS2Exception e) {
            throw new IOException("Error writing file . Reason: " + e.getMessage(), e);
        }
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.