com.partnersoft.maps.file
Class ConnectivityFileBuilder

java.lang.Object
  extended by com.partnersoft.maps.file.ConnectivityFileBuilder

public class ConnectivityFileBuilder
extends java.lang.Object


Constructor Summary
ConnectivityFileBuilder(VfsFile file)
           
 
Method Summary
 void addNode(int dataId, short flags, java.lang.String explicitName, java.lang.Iterable<java.lang.String> junctionCodes)
           
 void finish()
           
static void generateIndexFor(VfsFile file)
          This indexes an existing ConnectivityFile.
 void start()
           
static int writeHeader(java.io.DataOutputStream outie)
           
static void writeNode(java.io.DataOutputStream outie, int dataId, short flags, DynamicIntArray connections)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectivityFileBuilder

public ConnectivityFileBuilder(VfsFile file)
                        throws java.io.IOException
Throws:
java.io.IOException
Method Detail

start

public void start()
           throws java.io.IOException,
                  java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

addNode

public void addNode(int dataId,
                    short flags,
                    java.lang.String explicitName,
                    java.lang.Iterable<java.lang.String> junctionCodes)
             throws java.io.IOException,
                    java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

writeNode

public static void writeNode(java.io.DataOutputStream outie,
                             int dataId,
                             short flags,
                             DynamicIntArray connections)
                      throws java.io.IOException
Throws:
java.io.IOException

finish

public void finish()
            throws java.io.IOException,
                   java.sql.SQLException
Throws:
java.io.IOException
java.sql.SQLException

writeHeader

public static int writeHeader(java.io.DataOutputStream outie)
                       throws java.io.IOException
Throws:
java.io.IOException

generateIndexFor

public static void generateIndexFor(VfsFile file)
                             throws java.io.IOException
This indexes an existing ConnectivityFile.

Throws:
java.io.IOException