org.geotools.data.shapefile.indexed
Class FidIndexer

java.lang.Object
  extended byorg.geotools.data.shapefile.indexed.FidIndexer

public class FidIndexer
extends java.lang.Object

Creates a .fix file (fid index).

Author:
Jesse

Constructor Summary
FidIndexer()
           
 
Method Summary
static java.net.URL generate(java.net.URL shpURL)
           
protected static java.nio.channels.ReadableByteChannel getReadChannel(java.net.URL url)
          Obtain a ReadableByteChannel from the given URL.
protected static java.nio.channels.FileChannel getWriteChannel(java.net.URL url)
          Obtain a WritableByteChannel from the given URL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FidIndexer

public FidIndexer()
Method Detail

generate

public static java.net.URL generate(java.net.URL shpURL)
                             throws java.io.IOException
Throws:
java.io.IOException

getReadChannel

protected static java.nio.channels.ReadableByteChannel getReadChannel(java.net.URL url)
                                                               throws java.io.IOException
Obtain a ReadableByteChannel from the given URL. If the url protocol is file, a FileChannel will be returned. Otherwise a generic channel will be obtained from the urls input stream.

Parameters:
url - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

getWriteChannel

protected static java.nio.channels.FileChannel getWriteChannel(java.net.URL url)
                                                        throws java.io.IOException
Obtain a WritableByteChannel from the given URL. If the url protocol is file, a FileChannel will be returned. Currently, this method will return a generic channel for remote urls, however both shape and dbf writing can only occur with a local FileChannel channel.

Parameters:
url - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!


Copyright © GeoTools. All Rights Reserved.