Updated

A Pennsylvania judge Thursday denied Bill Cosby's attempt to compel his accuser to testify in his criminal sex assault case.

Cosby's legal team wanted the chance to cross-examine Andrea Constand before the 78-year-old actor/comedian is held for trial. Prosecutors have instead used her police statement at a May preliminary hearing that upheld the charges against Cosby.

Trial judge Steven T. O'Neill ruled Cosby should not receive a new preliminary hearing and ordered the trial to go forward.

Cosby lawyer Christopher Tayback said prosecutors' use of the hearsay testimony rule "blows the doors off" due process.

"There is no rule that says, `The court has to follow this rule, even if it violates due process,"' he said.

Montgomery County District Attorney Kevin Steele countered that the right of defendants like Cosby to confront their accusers in court doesn't apply at Pennsylvania preliminary hearings.

Steele told the judge he was using a 2013 rule change to spare Constand and other sex crime victims from multiple cross-examinations.

"It's our position that we're not going to re-traumatize victims at preliminary hearings," Steele told the judge, adding that he's using the rule change in a variety of sex assault cases, not just Cosby's.

Cosby was held for trial in May based on his and Constand's police statements from 2005.

Cosby is charged with felony indecent assault and accused of drugging and molesting Constand in 2004. Authorities reopened the case last year after learning he had acknowledged in a deposition that he had given Constand pills and then engaged in sex acts with her.

They also considered the dozens of other women who have raised similar claims in the decade since Constand went to police in 2005.

Cosby calls their encounter consensual and describes the blue pills he gave her as Benadryl. He said he sometimes took the same allergy medicine to help him fall asleep.

Prosecutors chose not to have Constand testify at the May preliminary hearing, citing the 2013 state Superior Court ruling that allows hearsay testimony at that stage to spare accusers from repeated court appearances. However, the state Supreme Court has agreed to review the decision, leading Cosby's lawyers to challenge it. The high court has not said when it will hear arguments on the issue.

Constand told police the drugs left her semiconscious and unable to move. Her lawyers believe Cosby gave her something stronger than Benadryl.

They said Cosby's graphic description of the encounter at the heart of his case shows "consciousness of guilt."

Steele read excerpts in court Thursday from the deposition in which Cosby said he gave Constand an over-the-counter antihistamine and penetrated her with his fingers.

Steele compared Cosby's behavior to that of a date rapist who spikes a victim's drink, knocking her unconscious before violating her.

"She is not in a state that she is able to consent to any of this," Steele said.

Cosby's lawyer disagreed.

"Mr. Cosby offered her a Benadryl and she accepted it and offered her a glass of wine and she accepted it and voluntarily ingested it," Tayback said.

The actor was known as America's Dad for his beloved portrayal of Dr. Cliff Huxtable on his top-ranked TV show, which ran from 1984 to 1992.

Cosby also is fighting Constand and other accusers in civil court, where he has been sued for defamation -- and has struck back with countersuits -- over his denial of their sex assault claims.

The Associated Press contributed to this report.