section 545(1)


545(1) Where a person, being present at a preliminary inquiry and being required by the justice to give evidence, (a) refuses to be sworn, (b) having been sworn, refuses to answer the questions that are put to him, (c) fails to produce any writings that he is required to produce, or (d) refuses to sign his deposition, without offering a reasonable excuse for his failure or refusal, the justice may adjourn the inquiry and may, by warrant in Form 20, commit the person to prison for a period not exceeding eight clear days or for the period during which the inquiry is adjourned, whichever is the lesser period.