I need to replace code using RandomAccessFile with one that uses in-memory byte buffer (such as byte[] or derivatives like ByteArrayInputStre
RandomAccessFile
byte[]
ByteArrayInputStre
ByteArrayInputStream can do it:
read()
seek(n)
reset()
skip(n)