uk.me.parabola.mkgmap.reader.plugin
Class MapReader

java.lang.Object
  extended by uk.me.parabola.mkgmap.reader.plugin.MapReader

public class MapReader
extends java.lang.Object

Class to find the correct map reader to use, based on the type of the file to be read. Allows new map readers to be registered, the map readers are in charge of recognising file formats that they can deal with.

Author:
Steve Ratcliffe

Constructor Summary
MapReader()
           
 
Method Summary
static LoadableMapDataSource createMapReader(java.lang.String name)
          Return a suitable map reader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapReader

public MapReader()
Method Detail

createMapReader

public static LoadableMapDataSource createMapReader(java.lang.String name)
Return a suitable map reader. The name of the resource to be read is passed in. This is usually a file name, but could be something else.

Parameters:
name - The resource name to be read.
Returns:
A LoadableMapDataSource that is capable of reading the resource.