public class MTSValidPacketIterator extends Object
Caution: Be careful when modifying this class. Methods here mutate its state. While a recursive solution would have been preferrable, ingested products with sufficiently large segments of bad data would cause a stack overflow.
Constructor and Description |
---|
MTSValidPacketIterator(org.taktik.mpegts.sources.ResettableMTSSource source) |
Modifier and Type | Method and Description |
---|---|
org.taktik.mpegts.MTSPacket |
getNextValidPacket()
Iterate through any number of exception-causing packets to reach either a valid one or the end
of the packet stream.
|
long |
getPacketsFailed() |
long |
getPacketsProcessed() |
public MTSValidPacketIterator(org.taktik.mpegts.sources.ResettableMTSSource source)
public long getPacketsProcessed()
public long getPacketsFailed()
public org.taktik.mpegts.MTSPacket getNextValidPacket()
null
if no more packets are available.This work is licensed under a Creative Commons Attribution 4.0 International License.