Revision 41764

View differences:

trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.file/org.gvsig.fmap.dal.file.dbf/src/main/java/org/gvsig/fmap/dal/store/dbf/utils/DbaseFileHeader.java
53 53
 */
54 54
public class DbaseFileHeader {
55 55
    // Constant for the size of a record
56
    private int FILE_DESCRIPTOR_SIZE = 32;
56
    private final int FILE_DESCRIPTOR_SIZE = 32;
57 57

  
58 58
	// type of the file, must be 03h
59 59
	private static final byte MAGIC = 0x03;
......
115 115
     * @param inFieldType DOCUMENT ME!
116 116
     * @param inFieldLength DOCUMENT ME!
117 117
     * @param inDecimalCount DOCUMENT ME!
118
     * @throws BadFieldDriverException
119
     *
120
     * @throws Exception DOCUMENT ME!
118
     * @throws org.gvsig.fmap.dal.feature.exception.AttributeFeatureTypeNotSuportedException
119

  
121 120
     */
122 121
    public void addColumn(String inFieldName, char inFieldType,
123 122
        int inFieldLength, int inDecimalCount)
......
269 268
                // if this is the last field and we still haven't found the
270 269
                // named field
271 270
                if ((i == j) && (i == (myFieldDescriptions.length - 1))) {
272
                    System.err.println("Could not find a field named '" +
273
                        inFieldName + "' for removal");
271
//                    System.err.println("Could not find a field named '" +
272
//                        inFieldName + "' for removal");
274 273

  
275 274
                    return retCol;
276 275
                }
......
307 306

  
308 307
    /**
309 308
     * Return the Field Descriptor for the given field.
310
     *
311
     * @param inIndex DOCUMENT ME!
312
     *
313
     * @return DOCUMENT ME!
309
     * @param inIndex, the index of the requeted field description
310
     * @return the dbase field descriptor.
314 311
     */
315 312
    public DbaseFieldDescriptor getFieldDescription(int inIndex) {
316 313
        return myFieldDescriptions[inIndex];
......
396 393
	 *
397 394
	 * @param in
398 395
	 *            DOCUMENT ME!
396
         * @param charsName
399 397
	 * @throws UnsupportedVersionException
400 398
	 * @throws UnsupportedEncodingException
401
	 *
402
	 * @throws IOException
403
	 *             DOCUMENT ME!
399

  
404 400
	 */
405 401
    public void readHeader(BigByteBuffer2 in, String charsName)
406 402
			throws UnsupportedVersionException, UnsupportedEncodingException {
......
408 404
        myFileType = in.get();
409 405

  
410 406
        if (myFileType != 0x03) {
411
            throw new UnsupportedVersionException("DBF", Integer
412
					.toHexString(myFileType));
407
            throw new UnsupportedVersionException("DBF", Integer.toHexString(myFileType));
413 408
        }
414 409

  
415 410
        // parse the update date information.
......
572 567
    /**
573 568
     * Class for holding the information assicated with a record.
574 569
     */
575
    class DbaseFieldDescriptor {
570
    public class DbaseFieldDescriptor {
576 571
        // Field Name
577 572
        String myFieldName;
578 573

  

Also available in: Unified diff