Fix #1236: Implement java.io.PrintWriter.

Yes, that's what Scala's package protected does.