开发者

Render SVG stored in memory using JSR-226 (Blackberry)

开发者 https://www.devze.com 2022-12-12 09:27 出处:网络
I have code that generates a data-driven SVG graph and I\'d like to display the graph directly. The method:

I have code that generates a data-driven SVG graph and I'd like to display the graph directly. The method:

javax.microedition.m2g.ScalableImage.createImage

can take either a URI or an InputStream as the source data for the graph, wha开发者_StackOverflow中文版t would be a good way to pass my graph data in? It's in String form in memory, so from what I can see I can either create a custom class extending InputStream (would prefer not to), or write the SVG data to disk and have it read back in. Is there any better ways of doing this?


It looks like this will do you what you want:

How do I turn a String into a InputStreamReader in java?

I don't know if that will apply on BlackBerry though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号