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

java.lang.Object
  extended by uk.me.parabola.imgfmt.app.ImgFile
      extended by uk.me.parabola.imgfmt.app.mdr.MDRFile
All Implemented Interfaces:
java.io.Closeable

public class MDRFile
extends ImgFile

The MDR file. This is embedded into a .img file, either its own separate one, or as one file in the gmapsupp.img.

Author:
Steve Ratcliffe

Constructor Summary
MDRFile(ImgChannel chan, MdrConfig config)
           
 
Method Summary
 void addCity(Mdr5Record city)
           
 void addCountry(Country country)
           
 void addMap(int mapName)
          Add a map to the index.
 void addPoint(Point point, Mdr5Record city, boolean isCity)
           
 void addRegion(Region region)
           
 void addStreet(Polyline street)
           
 void write()
           
 
Methods inherited from class uk.me.parabola.imgfmt.app.ImgFile
close, getHeader, getReader, getSize, getWriter, isWritable, position, position, setHeader, setReader, setWriter, sync
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MDRFile

public MDRFile(ImgChannel chan,
               MdrConfig config)
Method Detail

addMap

public void addMap(int mapName)
Add a map to the index. You must add the map, then all of the items that belong to it, before adding the next map.

Parameters:
mapName - The numeric name of the map.

addRegion

public void addRegion(Region region)

addCountry

public void addCountry(Country country)

addCity

public void addCity(Mdr5Record city)

addPoint

public void addPoint(Point point,
                     Mdr5Record city,
                     boolean isCity)

addStreet

public void addStreet(Polyline street)

write

public void write()