I am writing some data access test implementation and I need random access to file content. Here's the code:
RandomAccessFile randomAccessFile = new RandomAccessFile(file, "rwd");
final byte b[] = IOUtils.toByteArray(source);
randomAccessFile.write(b, (int) offset, size);
where offset has type long. Why doesn't RandomAccessFile provide method:
public void write(byte b[], long off, int len)
?
How to override this issue?