This content has been marked as final. Show 9 replies
sometimes sets -125 to dbfType, but when I view the file with hex viewer the value is 83. How is it possible that the received value is negative? Is it my problem or java stream reading problem (feature?)?
FileChannel dbfFile=new FileInputStream(dbfFileName).getChannel(); buffer=ByteBuffer.allocate(DBF_HEADER_SIZE_BASIC); buffer.order(ByteOrder.LITTLE_ENDIAN); int count=dbfFile.read(buffer); buffer.flip(); // read-in basic table definition buffer.position(0); dbfType=buffer.get();