uk.me.parabola.imgfmt.app.map
Class MapReader
java.lang.Object
uk.me.parabola.imgfmt.app.map.MapReader
- All Implemented Interfaces:
- java.io.Closeable
public class MapReader
- extends java.lang.Object
- implements java.io.Closeable
This is a view of a .img file when we are reading it. The Map
class is the equivalent for writing.
- Author:
- Steve Ratcliffe
Constructor Summary |
MapReader(java.lang.String filename)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapReader
public MapReader(java.lang.String filename)
throws java.io.FileNotFoundException
- Throws:
java.io.FileNotFoundException
pointsForLevel
public java.util.List<Point> pointsForLevel(int level)
- Get a list of all the points for a given level.
- Parameters:
level
- The level, lower numbers are the most detailed.
linesForLevel
public java.util.List<Polyline> linesForLevel(int level)
- Get a list of all the lines for a given level.
- Parameters:
level
- The level, lower numbers are the most detailed.
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Throws:
java.io.IOException
getCities
public java.util.List<City> getCities()
getCountries
public java.util.List<Country> getCountries()
getRegions
public java.util.List<Region> getRegions()
getTreBounds
public Area getTreBounds()