I received some multi-line data via HTTP and have it in one string. I need to filter only lines containing specific keywords and write it to a file.
How do I process these individual lines without consuming excessive memory? I.e. without splitting the input string at newline and then processing the list?
Jython-specific solutions are welcome, too.