Revision 3933

View differences:

branches/v051/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dbf/DbaseFile.java
276 276
     * @throws IOException DOCUMENT ME!
277 277
     */
278 278
    public void open(File file) throws IOException {
279
    	/*
279 280
        if (file.canWrite()){
280 281
            raf = new RandomAccessFile(file, "rw");
281 282
            mode = FileChannel.MapMode.READ_WRITE;
......
283 284
            raf = new RandomAccessFile(file, "r");
284 285
            mode = FileChannel.MapMode.READ_ONLY;
285 286
        }
287
        */
288
        raf = new RandomAccessFile(file, "r");
289
        mode = FileChannel.MapMode.READ_ONLY;
286 290
        channel = raf.getChannel();
287 291

  
288 292
        // buffer = channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size());

Also available in: Unified diff