title: Java File Cursor
body: <p>Is there some library for using some sort of cursor over a file? I have to read big files, but can't afford to read them all at once into memory. I'm aware of java.nio, but I want to use a higher level API.</p>
  
  <p>A little backgrond: I have a tool written in GWT that analyzes submitted xml documents and then pretty prints the xml, among other things. Currently I'm writing the pretty printed xml to a temp file (my lib would throw me an OOMException if I use plain Strings), but the temp file's size are approaching 18 megs, I can't afford to respond a GWT RPC with 18 megs :)</p>
  
  <p>So I can have a widget to show only a portion of the xml (check this <a href="http://zwitserloot.com/tipit-gwtlib/example/" rel="nofollow noreferrer">example</a>), but I need to read the corresponding portion of the file.</p>