However, Judge Claire Ryan was convinced by the submissions of his lawyer Richard Earwaker that publication of the man's name would lead to "extreme hardship" for members of his family - one of the high thresholds which must be met for suppression to be granted.
Mr Earwaker's submissions are also suppressed. Name suppression will remain in place until the man's next court appearance and he will stand trial in August.
A New Zealand Teachers Council spokesman previously confirmed the teacher was under investigation by the education body.
"He was suspended in June last year and he resigned the following month," the spokesman said. "Our understanding is that he hasn't taught since then. He also has signed a voluntary undertaking not to teach."
The council had suspended the man on an interim basis anyway, meaning he cannot lawfully work as a teacher.
"We know about the charge and our disciplinary investigation will be completed, a tribunal hearing conducted and a decision handed down after the criminal processes are completed," the spokesman said.