uk.me.parabola.imgfmt.app.trergn
Class RGNHeader
java.lang.Object
uk.me.parabola.imgfmt.app.CommonHeader
uk.me.parabola.imgfmt.app.trergn.RGNHeader
public class RGNHeader
- extends CommonHeader
The header for the RGN file. This is very simple, just a location and size.
- Author:
- Steve Ratcliffe
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HEADER_LEN
public static final int HEADER_LEN
- See Also:
- Constant Field Values
RGNHeader
public RGNHeader()
readFileHeader
protected void readFileHeader(ImgFileReader reader)
throws ReadFailedException
- 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
writeFileHeader
protected void writeFileHeader(ImgFileWriter writer)
- Write the rest of the header. It is guaranteed that the writer will be set
to the correct position before calling.
- Specified by:
writeFileHeader
in class CommonHeader
- Parameters:
writer
- The header is written here.
getDataOffset
public int getDataOffset()
setDataSize
public void setDataSize(int dataSize)
setExtTypeAreasInfo
public void setExtTypeAreasInfo(int offset,
int size)
setExtTypeLinesInfo
public void setExtTypeLinesInfo(int offset,
int size)
setExtTypePointsInfo
public void setExtTypePointsInfo(int offset,
int size)