public interface StreamHandler
| Modifier and Type | Method and Description |
|---|---|
void |
packet(PacketDescriptor pd,
java.nio.ByteBuffer data)
receive a data packet from the stream.
|
void |
packetDescriptor(PacketDescriptor pd)
description of a new packet type.
|
void |
streamClosed(StreamDescriptor sd)
indicates the stream end is encountered.
|
void |
streamComment(StreamComment sd)
comments on the stream.
|
void |
streamDescriptor(StreamDescriptor sd)
initial description of the stream.
|
void |
streamException(StreamException se)
This is used to indicate an exception occurred in the source.
|
void streamDescriptor(StreamDescriptor sd) throws StreamException
sd - StreamExceptionvoid packetDescriptor(PacketDescriptor pd) throws StreamException
pd - StreamExceptionvoid packet(PacketDescriptor pd, java.nio.ByteBuffer data) throws StreamException
pd - PacketDescriptor describing the data.data - ByteBuffer containing the data.StreamException - when something is wrong with the content of the stream.void streamClosed(StreamDescriptor sd) throws StreamException
sd - StreamExceptionvoid streamException(StreamException se) throws StreamException
se - StreamExceptionvoid streamComment(StreamComment sd) throws StreamException
sd - StreamException