org.jnetstream.packet
Interface HeaderCache

All Superinterfaces:
java.lang.Iterable<Header>

public interface HeaderCache
extends java.lang.Iterable<Header>

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Method Summary
 void add(Header headerRT)
           
 void add(int index, int offset)
           
 void add(int index, int offset, Header header)
           
 void clear()
          Reinitializes the map to initial empty state
 boolean contains(java.lang.Class<? extends Header> h)
           
 boolean contains(int index)
          Checks if the header entry of the protocol at the bit index exists
 boolean contains(int index, int instance)
          Checks if the header entry of the protocol at the bit index exists
 boolean contains(ProtocolEntry protocol)
           
 Header getHeader(int index)
           
 Header getHeader(int index, int instance)
           
 Header getHeader(ProtocolEntry protocol)
           
 int getOffset(int index)
           
 int getOffset(int index, int instance)
           
 boolean isEmpty()
           
 void put(int index, int instance, Header header)
           
 int size()
           
 Header[] toArray(Header[] h)
           
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

add

void add(Header headerRT)
Parameters:
headerRT -

add

void add(int index,
         int offset)

add

void add(int index,
         int offset,
         Header header)

clear

void clear()
Reinitializes the map to initial empty state


contains

boolean contains(java.lang.Class<? extends Header> h)

contains

boolean contains(int index)
Checks if the header entry of the protocol at the bit index exists

Returns:
true if the header of the bit index exists

contains

boolean contains(int index,
                 int instance)
Checks if the header entry of the protocol at the bit index exists

Returns:
true if the header of the bit index exists

contains

boolean contains(ProtocolEntry protocol)

getHeader

Header getHeader(ProtocolEntry protocol)

getHeader

Header getHeader(int index)

getHeader

Header getHeader(int index,
                 int instance)

getOffset

int getOffset(int index)

getOffset

int getOffset(int index,
              int instance)

isEmpty

boolean isEmpty()

put

void put(int index,
         int instance,
         Header header)

size

int size()

toArray

Header[] toArray(Header[] h)
Parameters:
h -
Returns: