A justice of the peace of any county into which an offender may have removed himself or escaped, on the oath of some credible person, may issue his warrant for the arrest of such offender, returnable before any justice of the peace of the county where the offense is cognizable, which shall authorize the arrest and removal of such offender to the proper county for examination.