The divorce has drawn intense publicity, much of it brought on by court filings in which the McGreeveys accuse each other of bad parenting and other misdeeds.

One of the most contentious issues in the divorce is what the child should be exposed to. Her mother made McGreevey and his partner take down a nude photograph in their home, contends that Jacqueline should not be allowed to sleep in her father’s bed, and says that the girl should not be allowed to receive communion in the Episcopal Church because she is being raised a Roman Catholic.

At the hearing, the judge said the girl would not be permitted to sleep in the same bed with anyone except her mother or father.

In the courthouse lobby, McGreevey said the judge’s comments regarding his homosexuality were “gracious and also reflected the law.”

Matos McGreevey and her lawyer, John N. Post, did not speak to reporters afterward.

Each partner has written a tell-all book about the marriage, which ended in 2004 when McGreevey, then governor of New Jersey, told the world he had had an extramarital affair with a male aide. McGreevey, 49, later claimed his former lover tried to blackmail him, and said he resigned rather than succumb to the man’s threats. The man, Golan Cipel, denies having had an affair with McGreevey.

McGreevey said Friday that he has not yet read his wife’s memoir, “Silent Partner,” which hits bookstores on Tuesday, but that he plans to “at some point.”

His own book, “The Confession,” arrived last September. He said then that he had carried on his affair with Cipel while his wife was hospitalized after a difficult child birth.