@Override public int readInt(String filePath){
  FileChannel fileChannel=updateCache(filePath);
  ByteBuffer byteBffer=read(fileChannel,CarbonCommonConstants.INT_SIZE_IN_BYTE);
  return byteBffer.getInt();
}

@ Override public int readInt ( String filePath ) { FileChannel fileChannel = updateCache ( filePath ) ; ByteBuffer byteBffer = read ( fileChannel , CarbonCommonConstants . INT_SIZE_IN_BYTE ) ; return byteBffer . getInt ( ) ; }
this method will be used to read int from file from postion ( offset ) , here length will be always 4 bacause int byte size if 4
