| Values | |
end_array | shared end_array end_arraySignals the end of a JSON array. |
end_object | shared end_object end_objectSignals the end of a JSON object. |
jsonEventType | shared jsonEventType jsonEventType |
jsonParser | shared jsonParser jsonParser |
recordParser | shared recordParser recordParser |
start_array | shared start_array start_arraySignals the start of a JSON array. |
start_object | shared start_object start_objectSignals the start of a JSON object. |
value | shared value valueSignals a JSON value. |
| Classes | |
JsonEvent | shared JsonEventA JSON event emited by the JsonParser. |
JsonEventType | shared abstract JsonEventTypeThe possibles types of JsonEvent emitted by the JsonParser. |
JsonParser | shared JsonParserA parser class which allows to incrementally parse json elements and emit json parse events instead of parsing a json element fully. This parser is convenient for parsing large json structures. The parser also parses concatenated json streams or line delimited json streams. The parser can also parse entire object or array when it is convenient, for instance a very large array of small objects can be parsed efficiently by handling array start/end and object events. Whenever the parser fails to parse or process the stream, the exceptionHandler is called with the cause of the failure and the current handling stops. After such event, the parser should not handle data anymore. |
RecordParser | shared RecordParserA helper class which allows you to easily parse protocols which are delimited by a sequence of bytes, or fixed size records. Instances of this class take as input Buffer instances containing raw bytes, and output records. For example, if I had a simple ASCII text protocol delimited by ' ' and the input was the following: buffer1:HELLO HOW ARE Y buffer2:OU? I AM buffer3: DOING OK buffer4: Then the output would be: buffer1:HELLO buffer2:HOW ARE YOU? buffer3:I AM DOING OK Instances of this class can be changed between delimited mode and fixed size record mode on the fly as individual records are read, this allows you to parse protocols where, for example, the first 5 records might all be fixed size (of potentially different sizes), followed by some delimited records, followed by more fixed size records. Instances of this class can't currently be used for protocols where the text is encoded with something other than a 1-1 byte-char mapping. Please see the documentation for more information. |
end_array | shared end_arraySignals the end of a JSON array. |
end_object | shared end_objectSignals the end of a JSON object. |
jsonEventType | shared jsonEventType |
jsonParser | shared jsonParser |
recordParser | shared recordParser |
start_array | shared start_arraySignals the start of a JSON array. |
start_object | shared start_objectSignals the start of a JSON object. |
value | shared valueSignals a JSON value. |