com.partnersoft.io.formats.rover
Class RoverDataBucket

java.lang.Object
  extended by com.partnersoft.io.formats.rover.RoverDataBucket

public class RoverDataBucket
extends java.lang.Object

A higher-level interface to RoverWriter. This takes an output file as argument, and lets you dump crud into it all you like. When you finish, call empty() and it sorts the data appropriately and writes the data to the file.

Author:
Paul Reavis Copyright 2002 Partner Software, Inc.

Constructor Summary
RoverDataBucket(java.io.File mapDir)
           
 
Method Summary
 int[] addData(int classID, long ID, java.util.ArrayList values, java.util.ArrayList graphics)
           
 int[] addData(int classID, long ID, java.util.ArrayList values, java.util.ArrayList graphics, java.util.ArrayList pieces)
           
 void dump()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoverDataBucket

public RoverDataBucket(java.io.File mapDir)
                throws java.io.IOException
Throws:
java.io.IOException
Method Detail

addData

public int[] addData(int classID,
                     long ID,
                     java.util.ArrayList values,
                     java.util.ArrayList graphics)
              throws java.io.IOException
Throws:
java.io.IOException

addData

public int[] addData(int classID,
                     long ID,
                     java.util.ArrayList values,
                     java.util.ArrayList graphics,
                     java.util.ArrayList pieces)
              throws java.io.IOException
Throws:
java.io.IOException

dump

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