Class JSONRawMessageParser


  • public class JSONRawMessageParser
    extends UnboundWriter<com.google.gson.JsonElement>
    Json parser into InstrumentMessage message.
    • Constructor Detail

      • JSONRawMessageParser

        public JSONRawMessageParser​(RecordClassDescriptor[] descriptors,
                                    java.lang.String typePropertyName)
    • Method Detail

      • parseDateTime

        protected long parseDateTime​(java.lang.String value)
      • parseNanoDateTime

        protected long parseNanoDateTime​(java.lang.String value)
      • parseTime

        protected int parseTime​(java.lang.String value)
      • getObjectType

        protected java.lang.Object getObjectType​(com.google.gson.JsonElement value)
        Description copied from class: UnboundWriter
        Return object type specification: can be RecordClassDescriptor instance, name of RecordClassDescriptor, GUID of RecordClassDescriptor
        Overrides:
        getObjectType in class UnboundWriter<com.google.gson.JsonElement>
        Parameters:
        value - values container
        Returns:
        object type specification
      • parse

        public RawMessage parse​(com.google.gson.JsonObject object)