| Modifier and Type | Field and Description |
|---|---|
static LegacyMapFormat |
INSTANCE
Singleton instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead(java.io.File file)
Find out if a file looks valid to this format.
|
LegacyMap |
read(java.io.File file)
Read a File and return a Map.
|
void |
write(Map map,
java.io.File file)
Write a map to a file.
|
public static final LegacyMapFormat INSTANCE
public LegacyMap read(java.io.File file) throws MapException
MapFormatread in interface MapFormatfile - The file to read.MapException - If there is a problem reading the map.public void write(Map map, java.io.File file) throws MapException
MapFormatwrite in interface MapFormatmap - The map to write.file - The file to write to.MapException - If there is a problem writing the map.public boolean canRead(java.io.File file)
throws MapException
MapFormatcanRead in interface MapFormatfile - The file to check.MapException - If there is a problem reading the file.