Revision 4957
branches/v061/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 |
if (file.canWrite()){ |
|
279 |
/* if (file.canWrite()){
|
|
280 | 280 |
raf = new RandomAccessFile(file, "rw"); |
281 | 281 |
mode = FileChannel.MapMode.READ_WRITE; |
282 |
} else { |
|
282 |
} else { */
|
|
283 | 283 |
raf = new RandomAccessFile(file, "r"); |
284 | 284 |
mode = FileChannel.MapMode.READ_ONLY; |
285 |
}
|
|
285 |
// }
|
|
286 | 286 |
channel = raf.getChannel(); |
287 | 287 |
|
288 | 288 |
// buffer = channel.map(FileChannel.MapMode.READ_ONLY, 0, channel.size()); |
Also available in: Unified diff