RandomAccessFile-like API for in-memory byte array?
<p>I need to replace code using <code>RandomAccessFile</code> with one that uses in-memory byte buffer (such as <code>byte[]</code> or derivatives like <code>ByteArrayInputStream</code>). Is there some API (byte array wrapper?) that has interface similar to <code>RandomAccessFile</code>, with <code>seek()</code> and streamish <code>read()</code> which I could plug in one-to-one?</p>
