public class MapFileHeader
extends java.lang.Object
Constructor and Description |
---|
MapFileHeader() |
Modifier and Type | Method and Description |
---|---|
MapFileInfo |
getMapFileInfo() |
byte |
getQueryZoomLevel(byte zoomLevel) |
SubFileParameter |
getSubFileParameter(int queryZoomLevel) |
void |
readHeader(ReadBuffer readBuffer,
long fileSize)
Reads and validates the header block from the map file.
|
public MapFileInfo getMapFileInfo()
public byte getQueryZoomLevel(byte zoomLevel)
zoomLevel
- the originally requested zoom level.public SubFileParameter getSubFileParameter(int queryZoomLevel)
queryZoomLevel
- the zoom level for which the sub-file parameters are needed.public void readHeader(ReadBuffer readBuffer, long fileSize) throws java.io.IOException
readBuffer
- the ReadBuffer for the file data.fileSize
- the size of the map file in bytes.java.io.IOException
- if an error occurs while reading the file.