And now I'm getting Java Heap Space errors with the large file.   It's as if the doc() function inside the stream() function is validating the document and this is what is consuming the heap.  The debugger steps through the stream() function to the doc() function, pauses, and then throws the heap exception.    Can I turn off validation so I can process a 704Meg file?