ctf: Make CTFTrace and its reader classes AutoCloseable
[deliverable/tracecompass.git] / org.eclipse.linuxtools.ctf.core / src / org / eclipse / linuxtools / ctf / core / trace / StreamInputReader.java
index 8ee435f5affeda7304b7503e11487da2d4cbd760..f88f4b22aa8143dedfd2fe2be4ce756fd878af2a 100644 (file)
@@ -28,7 +28,7 @@ import org.eclipse.linuxtools.internal.ctf.core.trace.StreamInputPacketIndexEntr
  * @author Matthew Khouzam
  * @author Simon Marchi
  */
-public class StreamInputReader {
+public class StreamInputReader implements AutoCloseable {
 
     // ------------------------------------------------------------------------
     // Attributes
@@ -96,10 +96,11 @@ public class StreamInputReader {
     /**
      * Dispose the StreamInputReader
      *
-     * @since 2.0
+     * @since 3.0
      */
-    public void dispose() {
-        fPacketReader.dispose();
+    @Override
+    public void close() {
+        fPacketReader.close();
     }
 
     // ------------------------------------------------------------------------
This page took 0.024492 seconds and 5 git commands to generate.