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
MapFormat
read
in interface MapFormat
file
- The file to read.MapException
- If there is a problem reading the map.public void write(Map map, java.io.File file) throws MapException
MapFormat
write
in interface MapFormat
map
- 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
MapFormat
canRead
in interface MapFormat
file
- The file to check.MapException
- If there is a problem reading the file.