Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How do i change a file content in a ResourceHandler.preLoad()?
How do i change a file content in a ResourceHandler.preLoad()? [message #872712] Wed, 16 May 2012 16:50 Go to next message
Leonid Ripeynih is currently offline Leonid RipeynihFriend
Messages: 150
Registered: February 2012
Senior Member
How do i change a file content in a ResourceHandler.preLoad() ?

I need to change a structure of a XML document, before passing is to load method. What's the right way to accomplish is using ResourceHandler API? It seems quite minimalistic as i can't return a new InputStream.
Re: How do i change a file content in a ResourceHandler.preLoad()? [message #872753 is a reply to message #872712] Wed, 16 May 2012 18:42 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
If you want to transform the stream before it's processed as normal, you
could do that in a specialized ResourceImpl.doLoad...


On 16/05/2012 6:50 PM, Dark Diver wrote:
> How do i change a file content in a ResourceHandler.preLoad() ?
>
> I need to change a structure of a XML document, before passing is to
> load method. What's the right way to accomplish is using
> ResourceHandler API? It seems quite minimalistic as i can't return a
> new InputStream.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Switching non-containment to containment during object copy.
Next Topic:[CDO] Forbidden error cloning maintenance release branch
Goto Forum:
  


Current Time: Sat Apr 20 03:22:27 GMT 2024

Powered by FUDForum. Page generated in 0.03143 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top