Package org.yamcs.tctm
Class TmFileReader
- java.lang.Object
-
- org.yamcs.tctm.TmFileReader
-
public class TmFileReader extends Object
Plays files in pacts format, hrdp format or containing raw ccsds packets.
-
-
Field Summary
Fields Modifier and Type Field Description protected InputStreaminputStream
-
Constructor Summary
Constructors Constructor Description TmFileReader(String fileName, PacketPreprocessor packetPreprocessor)Constructs a reader for telemetry files.
-
-
-
Field Detail
-
inputStream
protected InputStream inputStream
-
-
Constructor Detail
-
TmFileReader
public TmFileReader(String fileName, PacketPreprocessor packetPreprocessor) throws IOException
Constructs a reader for telemetry files. It reads the first two bytes to see if it's gzip- Parameters:
fileName-packetPreprocessor-- Throws:
IOException
-
-
Method Detail
-
readPacket
public TmPacket readPacket(long rectime) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Throws:
IOException
-
-