[jcifs] SmbRandomAccessFile.write(byte[] b, int off, int len)

jjrobert at lexmark.com jjrobert at lexmark.com
Wed Sep 27 20:57:18 GMT 2006

I'm confused about this API.  The javadoc doesn't specify what the offset
and length apply to, but this class seems to be a replacement for
java.io.RandomAccessFile, so I looked at the javadoc for their equivalent

It says:

   Writes len bytes from the specified byte array starting at offset off to
this file

But by trial and error, the jCIFS API appears to apply the offset to the
ARRAY, not the file.

Is the java.io javadoc wrong (probably should have thrown together a test
case), is the jCIFS behavior wrong, or should I just not expect this to be
a one-for-one replacement of java.io.RandomAccessFile ?


More information about the jcifs mailing list