uk.me.parabola.imgfmt.app.srt
Class SRTHeader
java.lang.Object
uk.me.parabola.imgfmt.app.CommonHeader
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SRTHeader
public SRTHeader(int headerLen)
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)