| Modifier and Type | Field and Description |
|---|---|
static int |
blockHeadSize
Размер заголовка
|
protected int |
dataLen |
protected byte |
hasData |
protected int |
position |
protected long |
scn |
| Constructor and Description |
|---|
MutableBlockHead() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDataLen()
Размер данных блока
|
int |
getPosition()
Расположение блока в файле
|
long |
getSCN()
Последовательный номер блока
|
boolean |
isHasData()
Данные присуствуют
|
static MutableBlockHead |
read(MappedByteBuffer buff,
int position) |
byte[] |
readData(MappedByteBuffer buff) |
void |
setDataLen(int dataLen) |
void |
setHasData(boolean has) |
void |
setPosition(int position) |
void |
setSCN(long number) |
void |
write(MappedByteBuffer buff) |
void |
writeData(MappedByteBuffer buff,
byte[] data) |
public static final int blockHeadSize
protected int dataLen
protected byte hasData
protected long scn
protected int position
public int getDataLen()
BlockHeadgetDataLen in interface BlockHeadpublic void setDataLen(int dataLen)
public boolean isHasData()
BlockHeadpublic void setHasData(boolean has)
public long getSCN()
BlockHeadpublic void setSCN(long number)
public int getPosition()
BlockHeadgetPosition in interface BlockHeadpublic void setPosition(int position)
public static MutableBlockHead read(MappedByteBuffer buff, int position)
public void write(MappedByteBuffer buff)
public byte[] readData(MappedByteBuffer buff)
public void writeData(MappedByteBuffer buff, byte[] data)
Copyright © 2018. All rights reserved.