uk.me.parabola.imgfmt.mdxfmt
Class MdxFile

java.lang.Object
  extended by uk.me.parabola.imgfmt.mdxfmt.MdxFile

public class MdxFile
extends java.lang.Object

The MDX index file. Used with the global index. This is located at the family level in the windows registry and can perhaps index across different products (and maybe families), although such a thing hasn't been seen.

Author:
Steve Ratcliffe

Constructor Summary
MdxFile(int familyId, int productId)
          Create with default family and product ids.
 
Method Summary
 void addMap(int name)
          Add a map with the default family and product id's and with equal name and hexname.
static void main(java.lang.String[] args)
          Create a file for testing.
 void write(java.lang.String filename)
          Write the file out to the given filename.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MdxFile

public MdxFile(int familyId,
               int productId)
Create with default family and product ids.

Parameters:
familyId - The default family id that will be used if no other one is supplied.
productId - The default product id for the maps indexed by this file.
Method Detail

addMap

public void addMap(int name)
Add a map with the default family and product id's and with equal name and hexname.

Parameters:
name - The map name as an integer.

write

public void write(java.lang.String filename)
           throws java.io.IOException
Write the file out to the given filename.

Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Create a file for testing. Will probably be removed at some point.

Throws:
java.io.IOException - If file cannot be written.