From: Nathaniel G. A. <nat...@ya...> - 2002-11-13 15:17:31
|
I do not understand what you are after. However you get or create an OutputStream is totally independent of jCharts. It sounds like you want your method to return the Chart Object not the OutputStream. Are you trying to create an applet? There is example code for this in the org.jcharts.test package. --- Jitender <jib...@an...> wrote: > Thanks for the info... but... > Thanks for the info... in the forum. > but that is not what i am looking for.(Was not able to post > a reply - it says duplicate message- so sending this mail) > > I want something like this (return some kind of > OutputStream, that can either be sent to the browser OR > saved to a file). How can i do something similar to this... > > public OutputStream getChart() > { > .....//some code here....etc. > OutputStream os ; > > JPEGEncoder13.encode( axisChart, 1.0f, os);//This statement > should not save chart to the file OR send output to browser, > I am interested in getting the OutputStream object from this > method. > > return os; > } > ===== An easy read on your Digital Rights Disappearing [http://newsforge.com/newsforge/02/10/21/1449250.shtml?tid=19] __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos http://launch.yahoo.com/u2 |