/** * Writes the start of a new JSON object representing the packet. */ @Override protected void onOpen() { getOutput().writeStartObject(); }
/** * When overridden in a derived class, writes content to the stream immediately after opening the writer on it. */ @Override protected final void onOpen() { if (m_elementType == ElementType.INTERVAL || m_elementType == ElementType.PROPERTY_CONVERTED_TO_INTERVAL) { getOutput().writeStartObject(); } else { getOutput().writePropertyName(m_propertyName); } }