[OSM-dev] implemented API for J2SE and J2ME
marcus.wolschon at googlemail.com
marcus.wolschon at googlemail.com
Tue Apr 21 07:03:42 BST 2009
Well,
sounds nice. Where is it?
Marcus
On Mon, 20 Apr 2009 23:55:59 +0200, Michael Willigens
<michael at willigens.de> wrote:
> Well,
>
> Concurrency: yes, it can use the calling thread OR it can instantiate
> new thread that
> will return the result when available to an callback interface. So
> anything is thread
> save here.
>
> Memory: Havent tested yet, because i think that parsing small XML
> files is also possible
> on J2ME. "Could" be improved by implementing a Sax parser in J2ME. I
> have thought about
> that but i think its kinda overpowered.
>
> Query Handling: On J2ME it will use the "HTTPConnection" class to get
> an InputStream for
> the XML parser. On J2SE it will use default URL.openInputStream().
>
> API itself:
> Some static reachable methods like:
> NameFinder.searchAsync(String query, int maxResults, NameFinderCallback
c)
> NameFinder.search(String query, int maxResults)
> will return an array of NameFinderResult Object which basically carry
> any data we have on
> NameFinder: type, category, name, info, description, nested results...
>
> Michael
More information about the dev
mailing list