I am using NetBeans 7.4 on Windows 7.
When I tried to read a JSON file with the following call,
String jsonTxt = IOUtils.toString(new FileInputStream(inputFileName), "UTF-8");
I received an OutOfMemoryError exception. I checked and saw that the file was over 28 GB so there is probably no way I can read it all into memory at once.
Is there a way to read in only part of the JSON file so that I do not run out of memory? There does not appear to be a suitable method in IOUtils.