org.jnetstream.protocol.codec
Interface HeaderRuntime<H extends Header>

All Superinterfaces:
CodecRuntime

public interface HeaderRuntime<H extends Header>
extends CodecRuntime

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Method Summary
<T extends Field>
void
add(T field)
           
 boolean decode()
           
 int getOffset()
           
 ProtocolInfo<? extends Header> getProtocol()
           
 H getSource()
          The get properly cast header container object.
 
Methods inherited from interface org.jnetstream.protocol.codec.CodecRuntime
getBitBuffer
 

Method Detail

getOffset

int getOffset()
Specified by:
getOffset in interface CodecRuntime
Returns:

add

<T extends Field> void add(T field)
Parameters:
destinationField -

getSource

H getSource()
The get properly cast header container object.

Returns:
header container

decode

boolean decode()
               throws java.io.IOException
Returns:
Throws:
java.io.IOException

getProtocol

ProtocolInfo<? extends Header> getProtocol()
Returns: