uk.me.parabola.imgfmt.app.mdr
Class Mdr9

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.mdr.ConfigBase
      extended by uk.me.parabola.imgfmt.app.mdr.MdrSection
          extended by uk.me.parabola.imgfmt.app.mdr.Mdr9

public class Mdr9
extends MdrSection

An index into mdr10. There is a single byte group number followed by the first record in mdr10 that belongs to that group.

Author:
Steve Ratcliffe

Constructor Summary
Mdr9(MdrConfig config)
           
 
Method Summary
 int getItemSize()
          The item size is always 4 as far as we know.
 void setGroups(java.util.Map<java.lang.Integer,java.lang.Integer> groupSizes)
           
 void writeSectData(ImgFileWriter writer)
          Write out the contents of this section.
 
Methods inherited from class uk.me.parabola.imgfmt.app.mdr.MdrSection
getSizes, numberToPointerSize, putMapIndex, putN, putStringOffset, setSizes
 
Methods inherited from class uk.me.parabola.imgfmt.app.mdr.ConfigBase
getConfig, isForDevice, setConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mdr9

public Mdr9(MdrConfig config)
Method Detail

writeSectData

public void writeSectData(ImgFileWriter writer)
Description copied from class: MdrSection
Write out the contents of this section.

Specified by:
writeSectData in class MdrSection
Parameters:
writer - Where to write it.

getItemSize

public int getItemSize()
The item size is always 4 as far as we know. For the non-device version anyway.

Specified by:
getItemSize in class MdrSection
Returns:
The record size, which is always 4. // XXX check for the device case

setGroups

public void setGroups(java.util.Map<java.lang.Integer,java.lang.Integer> groupSizes)