Fix #1236: Implement java.io.PrintWriter.

I don't know what Scala's package protected does :P I just complained :) But if that is how you make something protected and visible in the whole package, then yes.