com.partnersoft.v3x.apps.MapBrowser.rover
Class RoverFindItemDump

java.lang.Object
  extended by com.partnersoft.v3x.io.formats.PackedNamedRandomAccessObjectDump
      extended by com.partnersoft.v3x.apps.MapBrowser.rover.RoverFindItemDump
All Implemented Interfaces:
FindItemDump

public class RoverFindItemDump
extends PackedNamedRandomAccessObjectDump
implements FindItemDump

A "find item" dump file, containing named RoverGraphic bytes.


Constructor Summary
RoverFindItemDump(java.lang.String name, java.io.File dumpFile)
           
 
Method Summary
 void addChangeListener(javax.swing.event.ChangeListener lisner)
           
 FoundItem fetchItem(int index)
           
 FoundItem fetchItem(java.lang.String key)
           
static void main(java.lang.String[] argv)
           
protected  java.lang.Object readObjectImp(java.lang.String name, java.io.RandomAccessFile filet)
          Override this to provide custom reading of your data.
 void removeChangeListener(javax.swing.event.ChangeListener lisner)
           
 
Methods inherited from class com.partnersoft.v3x.io.formats.PackedNamedRandomAccessObjectDump
close, finalize, findClosest, getFile, getSize, indexOf, readName, readObject, readObject
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.partnersoft.v3x.apps.MapBrowser.locate.FindItemDump
close, findClosest, getSize, indexOf
 

Constructor Detail

RoverFindItemDump

public RoverFindItemDump(java.lang.String name,
                         java.io.File dumpFile)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readObjectImp

protected java.lang.Object readObjectImp(java.lang.String name,
                                         java.io.RandomAccessFile filet)
                                  throws java.io.IOException
Override this to provide custom reading of your data. The file is open to the correct position.

Specified by:
readObjectImp in class PackedNamedRandomAccessObjectDump
Throws:
java.io.IOException

fetchItem

public FoundItem fetchItem(int index)
Specified by:
fetchItem in interface FindItemDump

fetchItem

public FoundItem fetchItem(java.lang.String key)
Specified by:
fetchItem in interface FindItemDump

addChangeListener

public void addChangeListener(javax.swing.event.ChangeListener lisner)
Specified by:
addChangeListener in interface FindItemDump

removeChangeListener

public void removeChangeListener(javax.swing.event.ChangeListener lisner)
Specified by:
removeChangeListener in interface FindItemDump

main

public static void main(java.lang.String[] argv)