decoding an EO from NSXMLInputStream
decoding an EO from NSXMLInputStream
- Subject: decoding an EO from NSXMLInputStream
- From: Jean-François Veillette <email@hidden>
- Date: Mon, 4 Apr 2005 11:02:54 -0400
I use
ByteArrayInputStream istream = new ByteArrayInputStream(e.getBytes("UTF-8"));
NSXMLInputStream p = new NSXMLInputStream(istream);
NSDictionary ui = (NSDictionary)p.readObject();
p.close();
To get back a dictionary in which I have, among other values, an EOQualifiers qualifying based an EnterpriseObject.
I can get back my eo and reapply the qualifier to a new fetch spec, but I wonder why and how ???
When NSXMLInputStream is reading an EO, in which eoEditingContext is it putting it into ?
I'm in early development of this system, I did not tested it extensively, but to my surprise it just work so far. I thought I would have to make some more management about deserializing an eo, give an eoeditingcontext to deserialize into, or anything like that.
I'm afraid I'll hit a wall sooner or later, any experience with deserializing an eo from a xml stream ?
Anything I should know before it's too late ?
thanks !
- jfv
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden