Revision 10627 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dbf/DbaseFile.java

View differences:

DbaseFile.java
22 22
import java.util.Date;
23 23
import java.util.Locale;
24 24

  
25
import com.hardcode.gdbms.driver.exceptions.FileNotFoundDriverException;
25 26
import com.iver.utiles.bigfile.BigByteBuffer2;
26 27

  
27 28
/**
......
343 344
	 * @throws IOException
344 345
	 *             DOCUMENT ME!
345 346
	 */
346
	public void open(File file) throws IOException {
347
	public void open(File file) throws FileNotFoundDriverException {
347 348
		/*
348 349
		 * 01h DOS USA code page 437 02h DOS Multilingual code page 850 03h
349 350
		 * Windows ANSI code page 1252 04h Standard Macintosh 64h EE MS-DOS code
......
354 355
		 * C8h Windows EE code page 1250 C9h Russian Windows CAh Turkish Windows
355 356
		 * CBh Greek Windows
356 357
		 */
358
		try {
357 359
		if (file.canWrite()) {
358 360
			try {
359 361
				raf = new RandomAccessFile(file, "rw");
......
417 419
			chars = Charset.forName("ISO-8859-1");
418 420
		}
419 421
		bytesCachedRecord = new byte[myHeader.getRecordLength()];
422
		}catch (IOException e) {
423
			throw new FileNotFoundDriverException("DBF",e,file.getAbsolutePath());
424
		}
420 425
	}
421 426

  
422 427
	/**

Also available in: Unified diff