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

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.Mdr15

public class Mdr15
extends MdrSection

The string table. This is not used by the device. There is a compressed and non-compressed version of this section. We are starting with the regular string version.

Author:
Steve Ratcliffe

Constructor Summary
Mdr15(MdrConfig config)
           
 
Method Summary
 int createString(java.lang.String str)
           
 int getItemSize()
          The size of a record in the section.
 int getPointerSize()
          The meaning of number of items for this section is the largest string offset possible.
 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

Mdr15

public Mdr15(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()
Description copied from class: MdrSection
The size of a record in the section. This is not a constant and might vary on various factors, such as the file version, if we are preparing for a device, the number of maps etc.

Specified by:
getItemSize in class MdrSection
Returns:
The size of a record in this section.

createString

public int createString(java.lang.String str)

getPointerSize

public int getPointerSize()
The meaning of number of items for this section is the largest string offset possible. We are taking the total size of the string section for this.