org.geotools.index.quadtree.fs
Class FileSystemIndexStore

Object
  extended by FileSystemIndexStore
All Implemented Interfaces:
IndexStore

public class FileSystemIndexStore
extends Object
implements IndexStore

DOCUMENT ME!

Author:
Tommaso Nolli
Module:
trunk/gt/modules   (gt-modules.jar) (Maven report) (SVN head)

Constructor Summary
FileSystemIndexStore(File file)
          Constructor.
FileSystemIndexStore(File file, byte byteOrder)
          Constructor
 
Method Summary
 int getByteOrder()
          DOCUMENT ME!
 QuadTree load(IndexFile indexfile)
          Loads a quadrtee stored in a '.qix' file.
 void setByteOrder(byte byteOrder)
          DOCUMENT ME!
 void store(QuadTree tree)
          Stores a QuadTree
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSystemIndexStore

public FileSystemIndexStore(File file)
Constructor. The byte order defaults to NEW_MSB_ORDER

Parameters:
file -

FileSystemIndexStore

public FileSystemIndexStore(File file,
                            byte byteOrder)
Constructor

Parameters:
file -
byteOrder -
Method Detail

store

public void store(QuadTree tree)
           throws StoreException
Description copied from interface: IndexStore
Stores a QuadTree

Specified by:
store in interface IndexStore
Parameters:
tree - the QuadTree to store
Throws:
StoreException
See Also:
IndexStore.store(org.geotools.index.quadtree.QuadTree)

load

public QuadTree load(IndexFile indexfile)
              throws StoreException
Loads a quadrtee stored in a '.qix' file. WARNING: The resulting quadtree will be immutable; if you perform an insert, an UnsupportedOperationException will be thrown.

Specified by:
load in interface IndexStore
Returns:
the loaded QuadTree
Throws:
StoreException
See Also:
org.geotools.index.quadtree.IndexStore#load()

getByteOrder

public int getByteOrder()
DOCUMENT ME!

Returns:
Returns the byteOrder.

setByteOrder

public void setByteOrder(byte byteOrder)
DOCUMENT ME!

Parameters:
byteOrder - The byteOrder to set.


Copyright © 1996-2009 Geotools. All Rights Reserved.