uk.me.parabola.mkgmap.combiners
Class MdxBuilder

java.lang.Object
  extended by uk.me.parabola.mkgmap.combiners.MdxBuilder
All Implemented Interfaces:
Combiner

public class MdxBuilder
extends java.lang.Object
implements Combiner

Create the mdx file which is basically just a list of maps in a set. It is required for use with the global index file (mdr).

Author:
Steve Ratcliffe

Constructor Summary
MdxBuilder()
           
 
Method Summary
 void init(CommandArgs args)
          Initialise with the command line arguments.
 void onFinish()
          The complete map set has been processed.
 void onMapEnd(FileInfo finfo)
          This is called when an individual map is complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdxBuilder

public MdxBuilder()
Method Detail

init

public void init(CommandArgs args)
Description copied from interface: Combiner
Initialise with the command line arguments. This is called after all the command line arguments have been processed, but before any calls to the Combiner.onMapEnd(uk.me.parabola.mkgmap.combiners.FileInfo) methods.

Specified by:
init in interface Combiner
Parameters:
args - The command line arguments.

onMapEnd

public void onMapEnd(FileInfo finfo)
Description copied from interface: Combiner
This is called when an individual map is complete.

Specified by:
onMapEnd in interface Combiner
Parameters:
finfo - An interface to read the map.

onFinish

public void onFinish()
Description copied from interface: Combiner
The complete map set has been processed. Finish off anything that needs doing.

Specified by:
onFinish in interface Combiner