TSDuck v3.40-4034
MPEG Transport Stream Toolkit
|
An abstract class which can be derived by applications to get plugin events. More...
Public Member Functions | |
native void | delete () |
Delete the encapsulated C++ object. | |
abstract boolean | handlePluginEvent (PluginEventContext context, byte[] data) |
This handler is invoked when a plugin signals an event for which this object is registered. | |
Protected Member Functions | |
AbstractPluginEventHandler () | |
Constructor (for subclasses). | |
Protected Attributes | |
long | nativeObject = 0 |
The address of the underlying C++ object. | |
An abstract class which can be derived by applications to get plugin events.
native void io.tsduck.AbstractPluginEventHandler.delete | ( | ) |
Delete the encapsulated C++ object.
Reimplemented from io.tsduck.NativeObject.
|
abstract |
This handler is invoked when a plugin signals an event for which this object is registered.
The application should override it to collect the event.
The associated input event data is passed in data. If context.readOnlyData() is false, it is possible to update the data. This is typically the case with the memory input plugin which signals events with empty input data and expects TS packets as returned data. The updated data, if any, should be set by the handler using context.setOutputData(). The size of the returned data shall not exceed context.maxDataSize(). Otherwise, it will be ignored.
context | An instance of PluginEventContext containing the details of the event. |
data | A byte array containing the data of the event. This is a read-only sequence of bytes. There is no way to return data from Java to the plugin. |
|
protectedinherited |
The address of the underlying C++ object.
It is normally accessed by native methods only.