Package org.jnetstream.protocol.codec

A network protocol coder/decoder package.

See:
          Description

Interface Summary
Codec A protocol coder/decoder.
CodecField<F extends Field,T> A codec for fields.
CodecMetaHeader  
CodecRuntime  
Decodable Means that object can be decoded by a codec.
FieldRuntime  
HeaderCodec<T extends Header> A codec for headers.
HeaderRuntime<H extends Header>  
PacketRuntime Special interface which allows a packet codec to build a new packet.
Scannable  
Scanner Packet scanner which allows lightweight and heavyweight packet decoding.
Scanner.Scandec Scanner's Decoder or Scandec for short.
 

Class Summary
NullHeaderCodec An empty, no action, stub stand-in.
 

Enum Summary
Codec.Characteristic Describe certain characteristics of a codec.
CodecResult  
 

Exception Summary
CodecCreateException  
CodecDefinitionException  
CodecException  
CodecFormatException  
ProtocolFieldNotFoundException  
 

Package org.jnetstream.protocol.codec Description

A network protocol coder/decoder package. The package provide encoding and decoding services. The main class is the ProtocolCodecs class which contains static factory methods for various codec functions. The package functions mainly through its own interfaces which allow the codecs to save state during the codec processes. The main work interfaces are:

These interfaces define all of the interactions a codec has with the underly packet object and its internal state.

Changing factory implementation

The factory class can be changed using the system property jnetstream.capture.packet.codec system property. The f