BOSTON — A Waltham man has been arraigned on charges he assaulted two police officers after refusing to leave the Boston Public Library.

Forty-year-old Kevin Williams is charged with trespassing, resisting arrest, disorderly conduct and assault and battery on a police officer.

Prosecutors say Williams assaulted the officers after library staff asked them to remove Williams from the library's McKim Building at about 11:45 a.m. Monday.

The officers were treated for non-life threatening injuries at Tufts Medical Center.

Williams is being held on $2,500 bail. He's due back in court May 23.

A judge ordered Williams to stay away from the library and remain alcohol-free while the case is pending.

It's unclear whether he has an attorney who could comment on the charges.