1 /*******************************************************************************
2 * Copyright (c) 2015 Ericsson
4 * All rights reserved. This program and the accompanying materials are made
5 * available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Matthew Khouzam - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.tracecompass
.internal
.ctf
.core
.trace
;
15 import org
.eclipse
.jdt
.annotation
.NonNullByDefault
;
16 import org
.eclipse
.jdt
.annotation
.Nullable
;
17 import org
.eclipse
.tracecompass
.ctf
.core
.CTFException
;
18 import org
.eclipse
.tracecompass
.ctf
.core
.event
.types
.ICompositeDefinition
;
19 import org
.eclipse
.tracecompass
.ctf
.core
.trace
.ICTFPacketDescriptor
;
20 import org
.eclipse
.tracecompass
.ctf
.core
.trace
.IPacketReader
;
21 import org
.eclipse
.tracecompass
.internal
.ctf
.core
.event
.EventDefinition
;
24 * Null packet reader, used for unset packets
27 public final class NullPacketReader
implements IPacketReader
{
30 * Instance of a null packet reader
32 public static final NullPacketReader INSTANCE
= new NullPacketReader();
34 private NullPacketReader() { }
42 public boolean hasMoreEvents() {
47 public @Nullable EventDefinition
readNextEvent() throws CTFException
{
52 public @Nullable ICTFPacketDescriptor
getCurrentPacket() {
57 public @Nullable ICompositeDefinition
getCurrentPacketEventHeader() {