Class Stanag4609TransportStreamParser
java.lang.Object
org.codice.alliance.libs.stanag4609.Stanag4609TransportStreamParser
Parses an MPEG-2 transport stream according to the STANAG 4609 standard. It supports a subset of
the UAS Datalink Local Set KLV (MISB ST 0601).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.codice.ddf.libs.klv.KlvContext -
Constructor Summary
ConstructorsConstructorDescriptionStanag4609TransportStreamParser(com.google.common.io.ByteSource byteSource) Constructs aStanag4609TransportStreamParserwith the givenByteSourceas the provider of the transport stream bytes. -
Method Summary
Modifier and TypeMethodDescriptionparse()Parses the transport stream and returns all the decoded KLV metadata packets (in the order in which they were encountered) that belong to each metadata stream.voidparse(BiConsumer<Integer, DecodedKLVMetadataPacket> callback) Parses the transport stream and calls the given callback for each decoded KLV metadata packet in each metadata stream found in the transport stream.
-
Field Details
-
UAS_DATALINK_LOCAL_SET_CONTEXT
public static final org.codice.ddf.libs.klv.KlvContext UAS_DATALINK_LOCAL_SET_CONTEXT -
UAS_DATALINK_LOCAL_SET
- See Also:
-
CHECKSUM
- See Also:
-
TIMESTAMP
- See Also:
-
MISSION_ID
- See Also:
-
PLATFORM_TAIL_NUMBER
- See Also:
-
PLATFORM_DESIGNATION
- See Also:
-
IMAGE_SOURCE_SENSOR
- See Also:
-
IMAGE_COORDINATE_SYSTEM
- See Also:
-
SENSOR_LATITUDE
- See Also:
-
SENSOR_LONGITUDE
- See Also:
-
SENSOR_TRUE_ALTITUDE
- See Also:
-
SLANT_RANGE
- See Also:
-
TARGET_WIDTH
- See Also:
-
FRAME_CENTER_LATITUDE
- See Also:
-
FRAME_CENTER_LONGITUDE
- See Also:
-
FRAME_CENTER_ELEVATION
- See Also:
-
OFFSET_CORNER_LATITUDE_1
- See Also:
-
OFFSET_CORNER_LONGITUDE_1
- See Also:
-
OFFSET_CORNER_LATITUDE_2
- See Also:
-
OFFSET_CORNER_LONGITUDE_2
- See Also:
-
OFFSET_CORNER_LATITUDE_3
- See Also:
-
OFFSET_CORNER_LONGITUDE_3
- See Also:
-
OFFSET_CORNER_LATITUDE_4
- See Also:
-
OFFSET_CORNER_LONGITUDE_4
- See Also:
-
TARGET_LOCATION_LATITUDE
- See Also:
-
TARGET_LOCATION_LONGITUDE
- See Also:
-
TARGET_LOCATION_ELEVATION
- See Also:
-
GROUND_RANGE
- See Also:
-
PLATFORM_CALL_SIGN
- See Also:
-
EVENT_START_TIME
- See Also:
-
OPERATIONAL_MODE
- See Also:
-
CORNER_LATITUDE_1
- See Also:
-
CORNER_LONGITUDE_1
- See Also:
-
CORNER_LATITUDE_2
- See Also:
-
CORNER_LONGITUDE_2
- See Also:
-
CORNER_LATITUDE_3
- See Also:
-
CORNER_LONGITUDE_3
- See Also:
-
CORNER_LATITUDE_4
- See Also:
-
CORNER_LONGITUDE_4
- See Also:
-
SECURITY_LOCAL_METADATA_SET
- See Also:
-
SECURITY_CLASSIFICATION
- See Also:
-
CLASSIFYING_COUNTRY_CODING_METHOD
- See Also:
-
CLASSIFYING_COUNTRY
- See Also:
-
OBJECT_COUNTRY_CODING_METHOD
- See Also:
-
OBJECT_COUNTRY_CODES
- See Also:
-
SECURITY_SCI_SHI_INFORMATION
- See Also:
-
CAVEATS
- See Also:
-
RELEASING_INSTRUCTIONS
- See Also:
-
-
Constructor Details
-
Stanag4609TransportStreamParser
public Stanag4609TransportStreamParser(com.google.common.io.ByteSource byteSource) Constructs aStanag4609TransportStreamParserwith the givenByteSourceas the provider of the transport stream bytes.- Parameters:
byteSource- theByteSourceproviding the transport stream bytes
-
-
Method Details
-
parse
Parses the transport stream and calls the given callback for each decoded KLV metadata packet in each metadata stream found in the transport stream. The callback is called immediately upon finding a complete KLV metadata packet.- Parameters:
callback- a callback that will be called for each decoded KLV metadata packet in each metadata stream found in the transport stream, where the first parameter is the packet ID of the metadata stream and the second parameter is the decoded metadata packet- Throws:
Exception- if the transport stream cannot be parsed
-
parse
Parses the transport stream and returns all the decoded KLV metadata packets (in the order in which they were encountered) that belong to each metadata stream.
-