Any person confined in jail under judgment of conviction before a district magistrate judge may be paroled, such person's parole terminated and absolute discharge granted by a district judge having jurisdiction of appeals from such district magistrate judge in criminal cases, in the same manner and subject to the same restrictions as if such person had been convicted in and placed on probation by such district judge.
K.S.A. 21-6616