|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Record
A record within a capture file. Capture files contain multiple records which contain data. This interface provides access to a generic Record. Each record has at minimum, a header and content area. You can use various methods in this interface to access and manipulate these standard fields within the record.
Record consists of a header and record content. Records retrieve the header
and content into separate buffers. Also when you modify the record you may
supply each of the two buffers separately. You may use
#getHeaderBuffer and #getContentBuffer method calls to
retrieve raw buffers.
The header contains information about the record. The most important of which
is the type of record and record's overall length. Use the
getRecordType() method to get the records type and
getRecordLength() to get the entire record's length.
| Nested Class Summary | |
|---|---|
static interface |
Record.RecordHeaderField
|
| Method Summary | ||
|---|---|---|
|
asType(java.lang.Class<T> c)
Converts the current record to more specific type of 'c'. |
|
void |
edit()
|
|
FileCapture |
getFileCapture()
Gets the current FileCapture that this record is part of. |
|
long |
getPositionGlobal()
|
|
java.nio.ByteBuffer |
getRecordBuffer()
|
|
java.nio.ByteBuffer |
getRecordHeaderBuffer()
Returns the current active buffer that stores this record header. |
|
int |
getRecordHeaderLength()
Length of the header of this record. |
|
long |
getRecordLength()
Returns the length of the entire record. |
|
RecordType |
getRecordType()
Returns the type of this record. |
|
| Methods inherited from interface com.slytechs.utils.collection.Validatable |
|---|
isValid |
| Method Detail |
|---|
FileCapture getFileCapture()
RecordType getRecordType()
java.nio.ByteBuffer getRecordHeaderBuffer()
throws java.io.IOException
java.io.IOExceptionint getRecordHeaderLength()
long getRecordLength()
throws java.io.IOException
java.io.IOException
java.nio.ByteBuffer getRecordBuffer()
throws java.io.IOException
java.io.IOException
long getPositionGlobal()
throws java.io.IOException
java.io.IOException
void edit()
throws java.io.IOException
java.io.IOException<T extends Record> T asType(java.lang.Class<T> c)
T - c -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||