|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IBlockHeader
Make a common interface for different versions of the BlockHeader.
Field Summary | |
---|---|
static int |
MAGIC_NUMBER
The magic number, should be the value of magicNumber . |
Method Summary | |
---|---|
int |
bytesRemaining(int position)
Gives the bytes remaining in this block (physical record) given a buffer position. |
int |
firstEventStartingPosition()
Determines where the start of the first event (logical record) in this block (physical record) is located (in bytes). |
int |
getBufferEndingPosition()
Get the position in the buffer (in bytes) of this block's last data word. |
int |
getBufferStartingPosition()
Get the starting position in the buffer (in bytes) from which this header was read--if that happened. This is not part of the block header proper. |
int |
getHeaderLength()
Get the block header length, in ints. |
int |
getMagicNumber()
Get the magic number the block (physical record) header which should be 0xc0da0100. |
int |
getNumber()
Get the block number for this block (physical record). |
int |
getSize()
Get the size of the block (physical record). |
int |
getVersion()
Get the evio version of the block (physical record) header. |
boolean |
hasDictionary()
Is this block's first event is an evio dictionary? |
boolean |
isLastBlock()
Is this the last block in the file or being sent over the network? |
int |
nextBufferStartingPosition()
Determines where the start of the next block (physical record) header in some buffer is located (in bytes). |
void |
setBufferStartingPosition(int bufferStartingPosition)
Set the starting position in the buffer (in bytes) from which this header was read--if that happened. This is not part of the block header proper. |
java.lang.String |
toString()
Obtain a string representation of the block (physical record) header. |
int |
write(java.nio.ByteBuffer byteBuffer)
Write myself out a byte buffer. |
Field Detail |
---|
static final int MAGIC_NUMBER
magicNumber
.
Method Detail |
---|
int getSize()
int getNumber()
int getHeaderLength()
int getVersion()
int getMagicNumber()
int getBufferEndingPosition()
int getBufferStartingPosition()
void setBufferStartingPosition(int bufferStartingPosition)
bufferStartingPosition
- the starting position in the buffer from which this header was read--if that
happened.int nextBufferStartingPosition()
int firstEventStartingPosition()
int bytesRemaining(int position) throws EvioException
bufferStartingPosition
is
being maintained properly by the reader.
position
- the absolute current position is a byte buffer.
EvioException
boolean hasDictionary()
true
if this block's first event is an evio dictionary, else false
boolean isLastBlock()
true
if this is the last block in the file or being sent
over the network, else false
int write(java.nio.ByteBuffer byteBuffer)
byteBuffer
- the byteBuffer to write to.
java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |