com.partnersoft.v3x.apps.MapBrowser.locate
Class FindItemFileDump

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

public class FindItemFileDump
extends PackedNamedRandomAccessObjectDump
implements FindItemDump

A "find item" dump file, containing named (x, y) pairs.


Constructor Summary
FindItemFileDump(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

FindItemFileDump

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

main

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

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