Is there a way to expand MappedByteBuffer as i put more and more data in the buffer? i have several procedures that accesses a file, retrieves and writes data to it. But i am trying to modify this procedure to read a MappedByteBuffer instead to minimize disc access. Reading works fine, but i am having trouble writing to it because it requires me to allocate the size of the file and i don't really know how big the final file will get. What should i do in this case?