public void close ( ) throws IOException { indexBuffer . flush ( ) ; shapeBuffer . flush ( ) ; if ( shpChannel != null && shpChannel . isOpen ( ) ) { shpChannel . close ( ) ; } if ( shxChannel != null && shxChannel . isOpen ( ) ) { shxChannel . close ( ) ; } shpChannel = null ; shxChannel = null ; handler = null ; indexBuffer = null ; shapeBuffer = null ; }
Close the underlying Channels .