public class TransportStream
extends stream.io.AbstractStream
This class implements a simple stream of packets obtained from a transport
stream. Each packet has a size of 188 bytes. The data items emitted by this
stream contain the packet data (in packet:data) and the packet
identifier (in packet:id).
Additional attributes provided in each item are
packet:offset - the number of bytes this packet starts from
the start of the streampacket:sequence - the sequence number of this packet from
the stream (first packet is '0')
| Constructor and Description |
|---|
TransportStream(stream.io.SourceURL url) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
init() |
static void |
main(String[] args) |
stream.Data |
readNext() |
public void init()
throws Exception
init in interface stream.io.Sourceinit in class stream.io.AbstractStreamExceptionAbstractStream.init()public void close()
throws Exception
close in interface stream.io.Sourceclose in class stream.io.AbstractStreamExceptionAbstractStream.close()public stream.Data readNext()
throws Exception
readNext in class stream.io.AbstractStreamExceptionAbstractStream.readNext()Copyright © 2015. All rights reserved.