fseek($this->fp, 652256); $elevation = fread($this->fp, 4); // returns 88
ByteBuffer buf = ByteBuffer.allocate(4); fc.read(buf, 652256); buf.flip(); int elevation = buf.getInt(); // returns 808466488 buf.clear();
ByteBuffer buf = ByteBuffer.allocate(LEN_DATA); fc.read(buf, recordOffset + dataOffset); buf.position(0); byte[] bytearr = new byte[buf.remaining()]; buf.get(bytearr); String strElevation = new String(bytearr); return Integer.parseInt(strElevation);
data = readFile(name); elevation = data[4];