Class JsonLineReader

All Implemented Interfaces:
InputEntityReader

public class JsonLineReader extends TextReader.Bytes
JsonLineReader reads input text line by line and tries to convert each text line to an JSON object. Since each text line is processed indepdently, if any exception is thrown when parsing one text line, exception can be caught by callers to skip current line and continue to process next text line. This also means that each text line should be a well-formed JSON text, pretty-printed format is not allowed