Search the web
Sign In
New User? Sign Up
xmlpull-user
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Time to mordenize and speed up the API?   Message List  
Reply | Forward Message #265 of 308 |
Re: [xmlpull-user] Time to mordenize and speed up the API?

Hi,

> i think what Peter asked for is for API that allows to parse multiple
> nio inputs in the same time efficiently by using selector like API - as
> far as i can tell Javolution XPP is exactly like XmlPull v1 but uses
> CharSequence? are there any other changes?

Yes: XmlPullParserImpl.setInput(java.nio.ByteBuffer)

It is part of Javolution xpp implementation (but ot could be moved to the
interface).

It allows the xpp parsers to use nio byte buffer directly (non-blocking).
For example to parse udp xml messages (note: the udp message must contain
well-formed xml elements with end-tag).

Best regards,
Jean-Marie.


> Jean-Marie Dautelle wrote:
> > You might want to look at Javolution XPP-like parser supporting NIO
> > directly:
> > http://javolution.org/api/javolution/xml/pull/XmlPullParserImpl.html
> >
> > Best regards,
> > Jean-Marie (Javolution project owner).
> >
> > PS: XPP-Like because it uses CharSequence instead of Strings to avoid
> > creating objects dynamically (faster).
> >
> hi Jean-Marie,
>
> i think what Peter asked for is for API that allows to parse multiple
> nio inputs in the same time efficiently by using selector like API - as
> far as i can tell Javolution XPP is exactly like XmlPull v1 but uses
> CharSequence? are there any other changes?
>
> thanks,
>
> alek
> >
> >
> >> Hi all,
> >>
> >> Are there any thoughts about updating the API to take advantage of
> the
> >> java.nio package, and/or read data in a non-blocking mode in general?
> >>
> >> This would require a new return token to signal back that the parser
> >> has temporarily ran out of bytes to parse the next entity (e.g.,
> >> RETRY_LATER). The whole point would then be the possibility to read
> >> many streams in parallel using one thread...
> >>
> >> Regards,
> >> /Peter
> >>
> >>
> >>
> >>
> >>
> >> YAHOO! GROUPS LINKS
> >> Visit your group "xmlpull-user" on the web.
> >> To unsubscribe from this group, send an email to:
> >> xmlpull-user-unsubscribe@yahoogroups.com
> >> Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service.
> >>
> >>
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
>
>
> --
> The best way to predict the future is to invent it - Alan Kay
>
>
> YAHOO! GROUPS LINKS
> Visit your group "xmlpull-user" on the web.
> To unsubscribe from this group, send an email to:
> xmlpull-user-unsubscribe@yahoogroups.com
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
>




Fri Apr 7, 2006 1:42 pm

dautelle
Offline Offline
Send Email Send Email

Forward
Message #265 of 308 |
Expand Messages Author Sort by Date

Hi all, Are there any thoughts about updating the API to take advantage of the java.nio package, and/or read data in a non-blocking mode in general? This would...
peter.loborg
Offline Send Email
Apr 6, 2006
8:30 pm

... hi Peter, this would be very different API from XmlPull V1 however if you have a proposed API and implementation I see no reason why xmlpull.org website ...
Aleksander Slominski
as10m
Offline Send Email
Apr 6, 2006
9:16 pm

Hi, You might want to look at Javolution XPP-like parser supporting NIO directly: http://javolution.org/api/javolution/xml/pull/XmlPullParserImpl.html Best...
Jean-Marie Dautelle
dautelle
Offline Send Email
Apr 6, 2006
11:12 pm

... hi Jean-Marie, i think what Peter asked for is for API that allows to parse multiple nio inputs in the same time efficiently by using selector like API -...
Aleksander Slominski
as10m
Offline Send Email
Apr 7, 2006
2:59 am

Hi, ... Yes: XmlPullParserImpl.setInput(java.nio.ByteBuffer) It is part of Javolution xpp implementation (but ot could be moved to the interface). It allows...
Jean-Marie Dautelle
dautelle
Offline Send Email
Apr 7, 2006
2:09 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help