|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HeaderReader
| Method Summary | |
|---|---|
Filter<RecordFilterTarget> |
asRecordFilter(Filter<ProtocolFilterTarget> filter,
ProtocolFilterTarget protocol)
Method adapts a "protocol" filter to a "record" filter. |
int |
getBlockRecordHeaderLength()
Length of the block record's header (file header). |
int |
getHeaderLength(java.nio.ByteBuffer buffer)
|
int |
getLengthFieldOffset()
|
int |
getPacketRecordHeaderLength()
Length of the packet record's header. |
RecordFilterTarget |
readRecordFilterTarget(java.nio.ByteBuffer buffer)
|
RecordType |
readType(java.nio.ByteBuffer buffer)
|
| Methods inherited from interface com.slytechs.utils.memory.LengthReader |
|---|
getMinLength, getOffset, readLength |
| Method Detail |
|---|
int getHeaderLength(java.nio.ByteBuffer buffer)
buffer - TODO
RecordType readType(java.nio.ByteBuffer buffer)
readType in interface TypeReaderbuffer - TODO
RecordFilterTarget readRecordFilterTarget(java.nio.ByteBuffer buffer)
buffer -
Filter<RecordFilterTarget> asRecordFilter(Filter<ProtocolFilterTarget> filter,
ProtocolFilterTarget protocol)
The adaptor adapts a record filter to a packet filter by first making sure
its a PacketRecord. Only packet records can be adapted, then offets the
position within the buffer passed to accept and
execute filter methods by the length of the record's header.
Anotherwords, positions the buffer to point at the packet data, skipping
past the record's header. This allows a protocol filter to be applied to
records, since the record's buffer is shifted so that in reality the packet
filter can be applied.
filter - the protocol filter to adapt to a record filterprotocol - the protocol or the DLT of the first protocol within the packet's
data
int getBlockRecordHeaderLength()
int getPacketRecordHeaderLength()
int getLengthFieldOffset()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||