Revision 6990 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/drivers/dbf/DbaseFileHeader.java

View differences:

DbaseFileHeader.java
43 43
    // collection of header records.
44 44
    private DbaseFieldDescriptor[] myFieldDescriptions;
45 45

  
46
	private byte myLanguageID;
47

  
46 48
    /**
47 49
     * DbaseFileHreader constructor comment.
48 50
     */
......
359 361
        myHeaderLength = in.getShort();
360 362

  
361 363
        // read the length of a record
362
        myRecordLength = in.getShort();
364
        myRecordLength = in.getShort(); //posicon 0h
363 365

  
364 366
        in.order(ByteOrder.BIG_ENDIAN);
365 367

  
366 368
        // skip the reserved bytes in the header.
367
        in.position(in.position() + 20);
369
        // in.position(in.position() + 20);
370
        
371
        // Leemos el byte de language
372
        in.position(29);
373
        myLanguageID = in.get();
374
        
375
        // Posicionamos para empezar a leer los campos.
376
        in.position(32);
368 377

  
369 378
        // calculate the number of Fields in the header
370 379
        myNumFields = (myHeaderLength - FILE_DESCRIPTOR_SIZE - 1) / FILE_DESCRIPTOR_SIZE;
......
496 505
        // Field decimal count in Binary, indicating where the decimal is
497 506
        int myDecimalCount;
498 507
    }
508

  
509
	public byte getLanguageID() {
510
		return myLanguageID;
511
	}
499 512
}

Also available in: Unified diff