|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataRecord
Data record is a record in a capture file that belongs to one block record, a parent/child relationship, and contains some kind of data. Data records usually contain packet data but other types of data records also exist in certain file formats.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.jnetstream.capture.file.Record |
|---|
Record.RecordHeaderField |
| Method Summary | ||
|---|---|---|
|
asType(java.lang.Class<C> c)
Converts java class type of a generic record into more specific record. |
|
BlockRecord |
getBlockRecord()
Gets the parent block record this data record belongs to. |
|
java.nio.ByteBuffer |
getRecordDataBuffer()
Gets the data buffer of this record. |
|
int |
getRecordDataLength()
Retrieves the length of the data within the record. |
|
| Methods inherited from interface org.jnetstream.capture.file.Record |
|---|
asType, edit, getFileCapture, getPositionGlobal, getRecordBuffer, getRecordHeaderBuffer, getRecordHeaderLength, getRecordLength, getRecordType |
| Methods inherited from interface com.slytechs.utils.collection.Validatable |
|---|
isValid |
| Method Detail |
|---|
BlockRecord getBlockRecord()
java.nio.ByteBuffer getRecordDataBuffer()
throws java.io.IOException
java.io.IOException
int getRecordDataLength()
throws java.io.IOException
Packet#getIncludedLength due
to the fact that certain records may be oversized to hold the packet
data and thus there is unsused record data portion.
java.io.IOException
<C extends DataRecord> C asType(java.lang.Class<C> c)
throws FileFormatException
asType(java.lang.Class) method. Note that the actual record object may be a stub
in a remote session and the actual more specific type may have to be
fetched accross a network conneciton.
C - class type to convert this record to. The record type must be
of the correct type inorder for the cast conversion to
succeed.c - class instance of specific class type of a record to be
converted to
FileFormatException - if the current record is not of the correct type for the
conversion to take place
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||