|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JHeaderAccessor
Accessor to get a structured header from underlying buffer.
| Method Summary | ||
|---|---|---|
|
getHeader(T header)
Peers the supplied header with the native header state structure and packet data buffer. |
|
|
getHeader(T header,
int instance)
Peers the supplied header with the native header state structure and packet data buffer. |
|
|
getHeaderByIndex(int index,
T header)
Peers a header with specific index, not the numerical header ID assigned by JRegistry, of a header. |
|
int |
getHeaderCount()
Gets number of headers found within the packet header. |
|
int |
getHeaderIdByIndex(int index)
Gets the numerical ID of the header at specified index into header array as found by the packet scanner |
|
int |
getHeaderInstanceCount(int id)
Gets number of headers with the same numerical ID as assigned by JRegistry within the same packet. |
|
boolean |
hasHeader(int id)
Checks if header with specified numerical ID exists within the decoded packet |
|
boolean |
hasHeader(int id,
int instance)
Check if requested instance of header with specified numerical ID exists within the decoded packet |
|
|
hasHeader(T header)
Check if requested instance of header with specified numerical ID exists within the decoded packet and if found peers the supplied header with the located header within the decoded packet. |
|
|
hasHeader(T header,
int instance)
Check if requested instance of header with specified numerical ID exists within the decoded packet and if found peers the supplied header with the located header within the decoded packet. |
|
| Method Detail |
|---|
<T extends JHeader> T getHeader(T header)
T - name of the headerheader - instance of a header object
<T extends JHeader> T getHeader(T header,
int instance)
T - name of the headerheader - instance of a header objectinstance - instance number of the header since more than one header of the
same type can exist in the same packet buffer
<T extends JHeader> T getHeaderByIndex(int index,
T header)
T - name of the headerheader - instance of a header objectindex - index into the header array the scanner has found
java.lang.IndexOutOfBoundsExceptionint getHeaderCount()
int getHeaderIdByIndex(int index)
index - index into the header array
int getHeaderInstanceCount(int id)
id - numerical ID of the header to search for
boolean hasHeader(int id)
id - protocol header ID as assigned by JRegistry
boolean hasHeader(int id,
int instance)
id - protocol header ID as assigned by JRegistryinstance - instance number of the specific header within the packet
<T extends JHeader> boolean hasHeader(T header)
T - name of the header typeheader - protocol header object instance
<T extends JHeader> boolean hasHeader(T header,
int instance)
T - name of the header typeheader - protocol header object instanceinstance - instance number of the specific header within the packet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||