[jdom-interest] Output Method problem

Jason Hunter jhunter at xquery.com
Wed Jun 15 09:10:00 PDT 2005


Try it without Eclipse.  That eliminates the IDE as the source of error. 
  Looks like perhaps Eclipse isn't correctly resolving overloaded methods.

-jh-

Anand, Rajesh wrote:

>         Folks,
>         I'm using Eclipse for development, it complains - "THE METHOD_* 
> Output(List , OutputStream*_**) in the type XMLOutputter is not 
> applicable for arguments
> 
>         (Document,  FileOutputStream)"
>         Yet there are methods available in class XMLOutputter as 
> output(doc OutStream) and output(Doc Writer).
>         So why the error???
>         Here is the snippet of my code..
>         FileOutputStream outf = new FileOutputStream(new File(filename));
> 
>         XMLOutputter xout = new XMLOutputter();
> 
>         xout.output(doc, outf);
>         Any help will be greatly appreciated.
> 
> 
> */Rajesh Anand/*
> *Tel: + (44) (0) 207 996 1152*
> *Mob: + (44) (0) 7947273151*
> *Email:Rajesh_anand at ml.com*
> 
> ------------------------------------------------------------------------
> If you are not an intended recipient of this e-mail, please notify the 
> sender, delete it and do not read, act upon, print, disclose, copy, 
> retain or redistribute it. Click here 
> <http://www.ml.com/email_terms/>for important additional terms relating 
> to this e-mail.     http://www.ml.com/email_terms/
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com


More information about the jdom-interest mailing list