UPDATE2: My own version of the adapter class, that only calls instanceof in the constructor and uses a (Java 1.5) delta in the flush() and cl
instanceof
flush()
cl
Google's Guava has a simple utility to do this: CharStreams.asWriter
The implementation is not the fastest (see), if you want the best performance, you might want to look at spf4j Streams.asWriter