public class CcsdsReader
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CcsdsReader.PacketHandler
extend this class to handle a particular packet type.
|
| Constructor and Description |
|---|
CcsdsReader() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPacketHandler(int packetId,
CcsdsReader.PacketHandler h) |
java.util.Set<java.lang.Integer> |
getAppIds()
get the set of appIds.
|
void |
parse(java.nio.ByteBuffer buf) |
void |
parse(java.io.File file) |
void |
setOffsetCorrection(int offs)
set the CCSDS offset correction, in case the file has incorrect offsets between packets which can be corrected with
a simple offset.
|
public void setOffsetCorrection(int offs)
offs - public void addPacketHandler(int packetId,
CcsdsReader.PacketHandler h)
public void parse(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundExceptionjava.io.IOExceptionpublic void parse(java.nio.ByteBuffer buf)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Set<java.lang.Integer> getAppIds()