|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjdbm.recman.PageHeader
This class represents a page header. It is the common superclass for all different page views.
Field Summary | |
protected BlockIo |
block
|
protected static short |
SIZE
|
Constructor Summary | |
protected |
PageHeader(BlockIo block)
Constructs a PageHeader object from a block |
(package private) |
PageHeader(BlockIo block,
short type)
Constructs a new PageHeader of the indicated type. |
Method Summary | |
(package private) short |
getMagic()
Returns the magic code |
(package private) long |
getNext()
Returns the next block. |
(package private) long |
getPrev()
Returns the previous block. |
(package private) static PageHeader |
getView(BlockIo block)
Factory method to create or return a page header for the indicated block. |
protected void |
paranoiaMagicOk()
For paranoia mode |
(package private) void |
setNext(long next)
Sets the next block. |
(package private) void |
setPrev(long prev)
Sets the previous block. |
(package private) void |
setType(short type)
Sets the type of the page header |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final short SIZE
protected BlockIo block
Constructor Detail |
protected PageHeader(BlockIo block)
block
- The block that contains the file header
IOException
- if the block is too short to keep the file
header.PageHeader(BlockIo block, short type)
Method Detail |
static PageHeader getView(BlockIo block)
protected void paranoiaMagicOk()
short getMagic()
long getNext()
void setNext(long next)
long getPrev()
void setPrev(long prev)
void setType(short type)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |