[jdom-interest] A second XMLPutter.output() signature.

Brett McLaughlin brett.mclaughlin at lutris.com
Sat Jun 10 14:45:26 PDT 2000


> "Arvidsson, Hokan" wrote:
> 
> Hi all,
> 
> After generating a jdom Document from some stream you'd might like
> to write the result into another stream.
> In the result file, all ü characters were converted into ¼.
> I could only get this working by removing the encoding in
> XMLPutter.output().
> 
> I'm now using these parameter signatures:
> 
> public void output(Document doc, OutputStream out) throws IOException;
> // No encoding
> public void output(Document doc, OutputStream out, String enc) throws
> IOException;

I believe that you can specify the encoding now in output - I'm not sure
what your problem is??? 

Can you restate? I may just be missing it.

-Brett

> 
> It would be nice seeing this feature in the upcoming release (unless
> the problem may be solved in another way).
> 
> Cheers,
> Håkan
> 
> 
> Håkan Arvidsson
> Consultant
> Software AG Switzerland
> Tel. ..41-1-745 91 11
>



More information about the jdom-interest mailing list