close method

void close()

Release resources associated with this writer. Highly recommended

@throws IOException If errors occur.

Implementation

void close() {
  // IANS - GEOT 193, bogus 0x00 written. According to dbf spec, optional
  // eof 0x1a marker is, well, optional. Since the original code wrote a
  // 0x00 (which is wrong anyway) lets just do away with this :)
  // - produced dbf works in OpenOffice and ArcExplorer java, so it must
  // be okay.
  // buffer.position(0);
  // buffer.put((byte) 0).position(0).limit(1);
  // write();
  if (channel.isOpen) {
    channel.close();
  }
  // channel = null;
  // formatter = null;
}