tmf: Bug 489971: Premature processing of payload in custom parser
[deliverable/tracecompass.git] / tmf / org.eclipse.tracecompass.tmf.core / src / org / eclipse / tracecompass / tmf / core / parsers / custom / CustomEvent.java
index e06481fcb791b203fc2f40e7bc1d22e962772510..6d55a9664a6d1865980cd29f609a6d8d2441a97f 100644 (file)
@@ -172,6 +172,18 @@ public class CustomEvent extends TmfEvent {
         customEventContent = content;
     }
 
+    /**
+     * Get this event's content value.
+     * <p>
+     * This does not process the payload data and is therefore safe to call in
+     * the middle of parsing an event.
+     *
+     * @return the event's content value.
+     */
+    Object getContentValue() {
+        return customEventContent.getValue();
+    }
+
     /**
      * Set this event's type
      *
This page took 0.025688 seconds and 5 git commands to generate.