I would like to read a big file (it cannot fit in heap as an object). I have to read line by line, process each line and then save (append) in a new file.
I finished first step (loading and processing) and I print output on the console. I don't create an object of data. I think I must do it on the fly, but I don't know libraries which might be helpful.
What is more I would like to add XML or CSV Serialization.
Do you know some libraries which might solve this problem?
for (String line; (line = bufferedReader.readLine()) != null; ) {
String processedNewLine = processLine(Line);
//and I would like to serialize to XML (append)
XMLSerialiazer.serialize(processedNewLine, xmlTemp.getPath());
}