public final class MapReader
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static MapFormat |
guessFormat(java.io.File file)
Guess the format for a Map.
|
static Map |
readMap(java.io.File file)
Read a Map from a file and guess the format.
|
static Map |
readMap(java.io.File file,
MapFormat format)
Read a Map from a file using a particular format.
|
static Map |
readMap(java.lang.String file)
Read a Map from a file and guess the format.
|
static Map |
readMap(java.lang.String file,
MapFormat format)
Read a Map from a file using a particular format.
|
public static Map readMap(java.lang.String file) throws MapException
file - The name of the file to read.MapException - If there is a problem reading the map.public static Map readMap(java.lang.String file, MapFormat format) throws MapException
file - The name of the file to read.format - The format to use. If this is null then the format will be guessed.MapException - If there is a problem reading the map.public static Map readMap(java.io.File file) throws MapException
file - The file to read.MapException - If there is a problem reading the map.public static Map readMap(java.io.File file, MapFormat format) throws MapException
file - The file to read.format - The format to use. If this is null then the format will be guessed.MapException - If there is a problem reading the map.public static MapFormat guessFormat(java.io.File file) throws MapException
file - The file to guess the format of.MapException - If there is a problem reading the file.