Jet energy measurement with the ATLAS detector in proton-proton collisions at $\sqrt{\mathrm{s}}=7\ \mathrm{TeV}$