public abstract class BlockPayload extends Object
| Constructor and Description |
|---|
BlockPayload() |
| Modifier and Type | Method and Description |
|---|---|
protected RuntimeException |
blockCorruptedException() |
Block |
getBlock() |
BlockPointer |
getNextPos() |
BlockPointer |
getPos() |
protected abstract int |
getSize() |
protected abstract int |
getType() |
protected abstract void |
read(DataInputStream inputStream) |
void |
setBlock(Block block) |
protected abstract void |
write(DataOutputStream outputStream) |
public Block getBlock()
public void setBlock(Block block)
public BlockPointer getPos()
public BlockPointer getNextPos()
protected abstract int getSize()
protected abstract int getType()
protected abstract void read(DataInputStream inputStream) throws Exception
Exceptionprotected abstract void write(DataOutputStream outputStream) throws Exception
Exceptionprotected RuntimeException blockCorruptedException()
Copyright © 2013. All rights reserved