uk.me.parabola.imgfmt.app.srt
Class SRTHeader

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.CommonHeader
      extended by uk.me.parabola.imgfmt.app.srt.SRTHeader

public class SRTHeader
extends CommonHeader

The header of the MDR file. Note that there are many possible sections in this file and that only a certain number of them are needed. There are also many different lengths for the record sizes of the sections. Finally there are different sections and record sizes for the version that gets loaded into the gmapsupp.

Author:
Steve Ratcliffe

Field Summary
 
Fields inherited from class uk.me.parabola.imgfmt.app.CommonHeader
COMMON_HEADER_LEN
 
Constructor Summary
SRTHeader(int headerLen)
           
 
Method Summary
 void positionForBody()
           
protected  void readFileHeader(ImgFileReader reader)
          Read the rest of the header.
 void setCodepage(char codepage)
           
 void setDescription(java.lang.String description)
           
protected  void writeFileHeader(ImgFileWriter writer)
          Write out the application header.
 
Methods inherited from class uk.me.parabola.imgfmt.app.CommonHeader
getHeaderLength, readHeader, writeHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SRTHeader

public SRTHeader(int headerLen)
Method Detail

readFileHeader

protected void readFileHeader(ImgFileReader reader)
                       throws ReadFailedException
Description copied from class: CommonHeader
Read the rest of the header. Specific to the given file. It is guaranteed that the file position will be set to the correct place before this is called.

Specified by:
readFileHeader in class CommonHeader
Parameters:
reader - The header is read from here.
Throws:
ReadFailedException

positionForBody

public void positionForBody()

writeFileHeader

protected void writeFileHeader(ImgFileWriter writer)
Write out the application header. This is unusual as it just points to an area which is itself just a header.

Specified by:
writeFileHeader in class CommonHeader
Parameters:
writer - The header is written here.

setDescription

public void setDescription(java.lang.String description)

setCodepage

public void setCodepage(char codepage)