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

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.mdr.MdrConfig

public class MdrConfig
extends java.lang.Object

Configuration for the MDR file. Mostly used when creating a file as there are a number of different options in the way that it is done.

Author:
Steve Ratcliffe

Constructor Summary
MdrConfig()
           
 
Method Summary
 int getHeaderLen()
          There are a number of different header lengths in existence.
 boolean isForDevice()
          The format that is used by the GPS devices is different to that used by Map Source.
 boolean isWritable()
          True if we are creating the file, rather than reading it.
 void setForDevice(boolean forDevice)
           
 void setHeaderLen(int headerLen)
           
 void setWritable(boolean writable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdrConfig

public MdrConfig()
Method Detail

isWritable

public boolean isWritable()
True if we are creating the file, rather than reading it.


setWritable

public void setWritable(boolean writable)

isForDevice

public boolean isForDevice()
The format that is used by the GPS devices is different to that used by Map Source. This parameter says which to do.

Returns:
True if we are creating the the more compact format required for a device.

setForDevice

public void setForDevice(boolean forDevice)

getHeaderLen

public int getHeaderLen()
There are a number of different header lengths in existence. This controls what sections can exist (and perhaps what must exist).

Returns:
The header length.

setHeaderLen

public void setHeaderLen(int headerLen)