uk.me.parabola.imgfmt.app.lbl
Class LBLHeader

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.CommonHeader
      extended by uk.me.parabola.imgfmt.app.lbl.LBLHeader

public class LBLHeader
extends CommonHeader

The header for the LBL file.

Author:
Steve Ratcliffe

Field Summary
static int HEADER_LEN
           
 
Fields inherited from class uk.me.parabola.imgfmt.app.CommonHeader
COMMON_HEADER_LEN
 
Constructor Summary
LBLHeader()
           
 
Method Summary
protected  int getCodePage()
           
protected  int getEncodingType()
           
protected  int getLabelSize()
           
 int getLabelStart()
           
 PlacesHeader getPlaceHeader()
           
protected  void readFileHeader(ImgFileReader reader)
          Read the rest of the header.
 void setCodePage(int codePage)
           
 void setEncodingType(int type)
           
 void setLabelSize(int labelSize)
           
protected  void writeFileHeader(ImgFileWriter writer)
          Write the rest of the 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
 

Field Detail

HEADER_LEN

public static final int HEADER_LEN
See Also:
Constant Field Values
Constructor Detail

LBLHeader

public LBLHeader()
Method Detail

readFileHeader

protected void readFileHeader(ImgFileReader reader)
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.

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.

getEncodingType

protected int getEncodingType()

setEncodingType

public void setEncodingType(int type)

getLabelSize

protected int getLabelSize()

setLabelSize

public void setLabelSize(int labelSize)

getCodePage

protected int getCodePage()

setCodePage

public void setCodePage(int codePage)

getLabelStart

public int getLabelStart()

getPlaceHeader

public PlacesHeader getPlaceHeader()