Re: AdvertisementFactory deprecated method

Sayed Hashimi <[email protected]>
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
I think you need to use:
    StructuredDocumentFactory.newStructuredDocument(
MimeMediaType.XMLUTF8, fis );

Hope this helps,
Sayed

On 8/21/05, Edward Ribeiro <[email protected]> wrote:
> Hello, 
>   
> I am loading an Advertisement from a file using code like as shown below: 
>   
>   FileInputStream fis = new FileInputStream( new File("pipe.adv"));  
>   Advertisement adv =
> AdvertisementFactory.newAdvertisement(MimeMediaType.XMLUTF8,
> fis); 
>   
> It is working fine, but Eclipse IDE keeps saying that newAdvertisement
> method is deprecated. Anyone out there knows what method I should use
> instead ? 
>   
> Thanks, 
> Edward 
>   
>  
> 
>  ________________________________
>  Start your day with Yahoo! - make it your home page 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.