For example

Part of the case was not open to the public or the press and so was heard by the judge in chambers.