From: Nathaniel G. A. <nat...@ya...> - 2002-11-14 13:13:31
|
so have a method: public Chart getChart() --- Jitu <jib...@an...> wrote: <HR> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> Yes that is true, i want my method to return the Chart object not the output stream ( so that chart generation can be a separate method and streaming it OR saving it can be done sepearately based on some conditions which should be outside the chart generation methid.)<br> How can i do this ?<br> <br> (p.s - I am not writing a applet.)<br> <br> Thanks for your inputs.<br> Jitu<br> <br> Nathaniel G. Auvil wrote:<br> <blockquote type="cite" cite="mid...@we..."> <pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:jib...@an..."><jib...@an...></a> wrote: </pre> <blockquote type="cite"> <pre wrap="">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; } </pre> </blockquote> <pre wrap=""><!----> ===== An easy read on your Digital Rights Disappearing [<a class="moz-txt-link-freetext" href="http://newsforge.com/newsforge/02/10/21/1449250.shtml?tid=19">http://newsforge.com/newsforge/02/10/21/1449250.shtml?tid=19</a>] __________________________________________________ Do you Yahoo!? U2 on LAUNCH - Exclusive greatest hits videos <a class="moz-txt-link-freetext" href="http://launch.yahoo.com/u2">http://launch.yahoo.com/u2</a> </pre> </blockquote> <br> </body> </html> ===== An easy read on your Digital Rights Disappearing [http://newsforge.com/newsforge/02/10/21/1449250.shtml?tid=19] __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site http://webhosting.yahoo.com |