On 05/01/2015 15:26, Claes Redestad wrote:
:
For printf/format/Formatter then having %n result in a call to
newLine() has some appeal. It's doable in Formatter but would require
a spec change.
If we do this (do we have to?), where do we expose the newLine?
Currently Appendable is the only thing Formatter knows about, but I
guess having it there has been declared distasteful. :-)
Having it in Writer and doing some checks and casts could work, I
guess, just need to be careful not to impact performance much for
non-Writer cases.
We don't have to do this, I was just pointing out that it has some
appeal. Formatter does have a constructor that takes a PrintStream for
example.
-Alan