public void close() throws IOException {
  if (channel != null) {
    if (!readonly) {
      channel.force(true);
      channel.truncate(nextOverflowData);
    }
    channel.close();
  }
  if (file != null) {
    file.close();
  }
}

public void close ( ) throws IOException { if ( channel != null ) { if ( ! readonly ) { channel . force ( true ) ; channel . truncate ( nextOverflowData ) ; } channel . close ( ) ; } if ( file != null ) { file . close ( ) ; } }
close the geotiff file .
