Revision 20626 trunk/libraries/libFMap_dataFile/src/org/gvsig/data/datastores/vectorial/file/dbf/utils/DbaseFile.java
DbaseFile.java | ||
---|---|---|
36 | 36 |
// Header information for the DBase File |
37 | 37 |
private DbaseFileHeader myHeader; |
38 | 38 |
|
39 |
private File file; |
|
40 |
|
|
39 | 41 |
private RandomAccessFile raf; |
40 | 42 |
|
41 | 43 |
private FileChannel channel; |
... | ... | |
62 | 64 |
|
63 | 65 |
private Charset chars; |
64 | 66 |
|
67 |
|
|
65 | 68 |
/** Utility for formatting Dbase fields. */ |
66 | 69 |
public static class FieldFormatter { |
67 | 70 |
private StringBuffer buffer = new StringBuffer(255); |
... | ... | |
168 | 171 |
} |
169 | 172 |
} |
170 | 173 |
|
174 |
public DbaseFile(File afile){ |
|
175 |
this.file= afile; |
|
176 |
} |
|
177 |
|
|
171 | 178 |
// Retrieve number of records in the DbaseFile |
172 | 179 |
public int getRecordCount() { |
173 | 180 |
return myHeader.getNumRecords(); |
... | ... | |
357 | 364 |
* @throws IOException |
358 | 365 |
* DOCUMENT ME! |
359 | 366 |
*/ |
360 |
public void open(File file) throws FileNotFoundException, UnsupportedVersionException {
|
|
367 |
public void open() throws FileNotFoundException, UnsupportedVersionException { |
|
361 | 368 |
/* |
362 | 369 |
* 01h DOS USA code page 437 02h DOS Multilingual code page 850 03h |
363 | 370 |
* Windows ANSI code page 1252 04h Standard Macintosh 64h EE MS-DOS code |
Also available in: Unified diff