pl.edu.pjwstk.yaod.store.defaultstore.blocks
Class BlockBody

java.lang.Object
  |
  +--pl.edu.pjwstk.yaod.store.defaultstore.blocks.BlockSection
        |
        +--pl.edu.pjwstk.yaod.store.defaultstore.blocks.BlockBody

public class BlockBody
extends BlockSection


Constructor Summary
BlockBody(byte[] body)
           
BlockBody(int size)
           
 
Method Summary
 void get(byte[] buf, short offset, short length)
           
 byte[] get(short offset, short length)
           
 int getInt(short offset)
           
 BlockSection getParentSection()
           
 short getShort(short offset)
           
 short getSize()
           
 void move(short start, short val, short len)
           
 void put(byte[] buf, short offset)
           
 void putInt(int value, short offset)
           
 void putShort(short value, short offset)
           
 byte[] toByteArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockBody

public BlockBody(int size)

BlockBody

public BlockBody(byte[] body)
Method Detail

getSize

public short getSize()
Overrides:
getSize in class BlockSection

getParentSection

public BlockSection getParentSection()
Overrides:
getParentSection in class BlockSection

move

public void move(short start,
                 short val,
                 short len)

put

public void put(byte[] buf,
                short offset)

get

public void get(byte[] buf,
                short offset,
                short length)

get

public byte[] get(short offset,
                  short length)

getShort

public short getShort(short offset)

putShort

public void putShort(short value,
                     short offset)

getInt

public int getInt(short offset)

putInt

public void putInt(int value,
                   short offset)

toByteArray

public byte[] toByteArray()