Message9532

Author santa4nt
Recipients jamesls, santa4nt, zyasoft
Date 2015-02-20.22:11:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424470265.31.0.735439211592.issue2068@psf.upfronthosting.co.za>
In-reply-to
Content
It seems like the call:

    fileChannel.write(buf, fileChannel.position());

always has the second parameter returning 3 (the number of bytes written after the first .write() call) on subsequent write() calls. This is puzzling to me since the JavaDoc for FileChannel#write [1] says:

    [...] the file position is updated with the number of bytes actually written. 

[1] http://docs.oracle.com/javase/7/docs/api/java/nio/channels/FileChannel.html#write(java.nio.ByteBuffer)
History
Date User Action Args
2015-02-20 22:11:05santa4ntsetmessageid: <1424470265.31.0.735439211592.issue2068@psf.upfronthosting.co.za>
2015-02-20 22:11:05santa4ntsetrecipients: + santa4nt, zyasoft, jamesls
2015-02-20 22:11:05santa4ntlinkissue2068 messages
2015-02-20 22:11:04santa4ntcreate