/** * Writes the end of the JSON object representing the packet. */ @Override protected void onClose() { getOutput().writeEndObject(); }
/** * When overridden in a derived class, writes content to the stream immediately before closing the writer on it. */ @Override protected final void onClose() { if (m_elementType == ElementType.INTERVAL || m_elementType == ElementType.PROPERTY_CONVERTED_TO_INTERVAL) { getOutput().writeEndObject(); if (m_elementType == ElementType.PROPERTY_CONVERTED_TO_INTERVAL) { m_elementType = ElementType.PROPERTY; } } }