uk.me.parabola.imgfmt.mps
Class MpsFile

java.lang.Object
  extended by uk.me.parabola.imgfmt.mps.MpsFile

public class MpsFile
extends java.lang.Object

This file is a description of the map set that is loaded into the gmapsupp.img file and an index of the maps that it contains. It is different than all the other files that fit inside the gmapsupp file in that it doesn't contain the common header. So it does not extend ImgFile.

Author:
Steve Ratcliffe

Constructor Summary
MpsFile(ImgChannel chan)
           
 
Method Summary
 void addMap(MapBlock map)
           
 void addProduct(ProductBlock pb)
           
 void close()
           
 void setMapsetName(java.lang.String mapsetName)
           
 void sync()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MpsFile

public MpsFile(ImgChannel chan)
Method Detail

sync

public void sync()
          throws java.io.IOException
Throws:
java.io.IOException

addMap

public void addMap(MapBlock map)

addProduct

public void addProduct(ProductBlock pb)

setMapsetName

public void setMapsetName(java.lang.String mapsetName)

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException