[jdom-interest] Dealing with binary characters in-memory ->outputter, Sample Code, Findings

Jason Hunter jhunter at collab.net
Wed Sep 26 10:52:21 PDT 2001

> > Life would be a lot simpler if all writers had a getEncoding() method.
> Which is unfortunately meaningless if the Writer is anything but an
> OutputStreamWriter....
> Attila.

I think you could chain down to the final Writer to determine the
encoding.  If you have a handle on a Writer there will be some writer
down the writer stack that either has a set encoding (a la OSW) or let
the encoding go to the default (a la FileWriter).


More information about the jdom-interest mailing list