pl.edu.pjwstk.yaod.store.defaultstore.newblocks
Class BlockSection

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

public class BlockSection
extends java.lang.Object


Constructor Summary
BlockSection(BlockSection parentSection, short start, short size)
           
BlockSection(byte[] data)
           
 
Method Summary
 byte[] get(short offset, short length)
           
 byte[] getBytes()
           
 short getEnd()
           
 short getShort(short offset)
           
 short getSize()
           
 short getStart()
           
 void getStruct(java.lang.Object obj, int offset)
           
 boolean isSuperSection()
           
 void move(short start, short val, short len)
           
 void put(byte[] buf, int offset)
           
 void putShort(short offset, short value)
           
 void putStruct(java.lang.Object obj, int offset)
           
 void setSize(short size)
           
 void setStart(short start)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlockSection

public BlockSection(BlockSection parentSection,
                    short start,
                    short size)
             throws SectionBoundsException

BlockSection

public BlockSection(byte[] data)
Method Detail

isSuperSection

public boolean isSuperSection()

getSize

public short getSize()

setStart

public void setStart(short start)
              throws SectionBoundsException

getStart

public short getStart()

getEnd

public short getEnd()

setSize

public void setSize(short size)
             throws SectionBoundsException

getBytes

public byte[] getBytes()

put

public void put(byte[] buf,
                int offset)
         throws SectionBoundsException

get

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

move

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

getShort

public short getShort(short offset)
               throws SectionBoundsException

putShort

public void putShort(short offset,
                     short value)
              throws SectionBoundsException

putStruct

public void putStruct(java.lang.Object obj,
                      int offset)
               throws SectionBoundsException

getStruct

public void getStruct(java.lang.Object obj,
                      int offset)
               throws SectionBoundsException