com.iver.cit.gvsig.fmap.drivers.shp.write
Class SHPFileWrite

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.drivers.shp.write.SHPFileWrite

public class SHPFileWrite
extends java.lang.Object

DOCUMENT ME!

Author:
Vicente Caballero Navarro

Constructor Summary
SHPFileWrite(java.nio.channels.FileChannel shpChannel, java.nio.channels.FileChannel shxChannel)
          Crea un nuevo SHPFileWrite.
 
Method Summary
 void close()
          Close the underlying Channels.
 void write(IGeometry[] geometries, int type)
          DOCUMENT ME!
 void writeGeometry(IGeometry g)
          DOCUMENT ME!
 void writeHeaders(java.awt.geom.Rectangle2D bounds, int type, int numberOfGeometries, int fileLength)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SHPFileWrite

public SHPFileWrite(java.nio.channels.FileChannel shpChannel,
                    java.nio.channels.FileChannel shxChannel)
Crea un nuevo SHPFileWrite.

Parameters:
shpChannel - DOCUMENT ME!
shxChannel - DOCUMENT ME!
Method Detail

close

public void close()
           throws java.io.IOException
Close the underlying Channels.

Throws:
java.io.IOException - DOCUMENT ME!

write

public void write(IGeometry[] geometries,
                  int type)
           throws java.io.IOException,
                  ShapefileException
DOCUMENT ME!

Parameters:
geometries - DOCUMENT ME!
type - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
ShapefileException - DOCUMENT ME!

writeHeaders

public void writeHeaders(java.awt.geom.Rectangle2D bounds,
                         int type,
                         int numberOfGeometries,
                         int fileLength)
                  throws java.io.IOException
DOCUMENT ME!

Parameters:
bounds - DOCUMENT ME!
type - DOCUMENT ME!
numberOfGeometries - DOCUMENT ME!
fileLength - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!

writeGeometry

public void writeGeometry(IGeometry g)
                   throws java.io.IOException
DOCUMENT ME!

Parameters:
g - DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!