/**
* @see org.jnode.fs.FSFile#write(long, java.nio.ByteBuffer)
*/
public void write(long fileOffset, ByteBuffer src) throws IOException {
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());
src.get(buf, 0, bc);
raf.write(buf, 0, bc);
}
raf.close();
}