All Packages This Package Class Hierarchy Class Search Index
java.lang.Object | +----edu.utah.janos.antsr.core.CapsuleChannel
| Summary |
final class CapsuleChannel
extends java.lang.Object
implements edu.utah.janos.nodeos.DeliverFunc
{
// Fields 3
Class cl;
private ANTSRDemultiplexKey classifier;
InChannel inChannel;
// Constructors 2
CapsuleChannel(CapsuleClass);
CapsuleChannel(Class, ANTSRDemultiplexKey);
// Methods 2
public void receive(BufferHandle, int) throws IOException;
public String toString();
}
The handler for incoming ANTSR packets. They get decoded into Capsules and evaluted here.
| Fields |
· cl | Summary | Top |
Class cl
· inChannel | Summary | Top |
InChannel inChannel
· classifier | Summary | Top |
private ANTSRDemultiplexKey classifier
| Constructors |
· CapsuleChannel | Summary | Top |
CapsuleChannel(CapsuleClass cc)
Construct a receive channel for cc Capsules. Implicitly constructs an ANTSRDemultiplexKey to match the right packets.
· CapsuleChannel | Summary | Top |
CapsuleChannel(Class cl,
ANTSRDemultiplexKey classifier)
| Methods |
· receive | Summary | Top |
public void receive(BufferHandle packet,
int payloadStart) throws IOException
Handler for packets delivered to this Channel.
Receives a BufferHandle and decodes the packet into a Capsule.
Assumes packet[0] is the first byte of the ANEP header...
XXX this is atrocious code. Rewrite it now.
- Implements:
- receive in interface DeliverFunc
· toString | Summary | Top |
public String toString()
- Overrides:
- toString in class Object
All Packages This Package Class Hierarchy Class Search IndexFreshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7