KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sf > jasperreports > engine > JasperManager


1 /*
2  * ============================================================================
3  * GNU Lesser General Public License
4  * ============================================================================
5  *
6  * JasperReports - Free Java report-generating library.
7  * Copyright (C) 2001-2006 JasperSoft Corporation http://www.jaspersoft.com
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2.1 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the Free Software
21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
22  *
23  * JasperSoft Corporation
24  * 303 Second Street, Suite 450 North
25  * San Francisco, CA 94107
26  * http://www.jaspersoft.com
27  */

28 package net.sf.jasperreports.engine;
29
30 import java.awt.Image JavaDoc;
31 import java.io.InputStream JavaDoc;
32 import java.io.OutputStream JavaDoc;
33 import java.sql.Connection JavaDoc;
34 import java.util.Collection JavaDoc;
35 import java.util.Map JavaDoc;
36
37 import net.sf.jasperreports.engine.design.JasperDesign;
38 import net.sf.jasperreports.engine.util.JRLoader;
39 import net.sf.jasperreports.engine.xml.JRXmlLoader;
40
41
42 /**
43  * General purpose façade class for the JasperReports engine.
44  * It delegates almost all its functionality to the other specialized
45  * façade classes for compiling, filling, printing or exporting reports.
46  *
47  * @see net.sf.jasperreports.engine.JasperCompileManager
48  * @see net.sf.jasperreports.engine.JasperFillManager
49  * @see net.sf.jasperreports.engine.JasperPrintManager
50  * @see net.sf.jasperreports.engine.JasperExportManager
51  * @see net.sf.jasperreports.engine.JasperRunManager
52  * @see net.sf.jasperreports.engine.util.JRLoader
53  * @see net.sf.jasperreports.engine.xml.JRXmlLoader
54  * @deprecated Use the specialized façade classes for specific operations
55  * @author Teodor Danciu (teodord@users.sourceforge.net)
56  * @version $Id: JasperManager.java 1229 2006-04-19 13:27:35 +0300 (Wed, 19 Apr 2006) teodord $
57  */

58 public class JasperManager
59 {
60
61
62     /**
63      * @deprecated Replaced by {@link JasperRunManager#runReportToPdfFile(String, Map, Connection)}.
64      */

65     public static void runReportToPdfFile(
66         String JavaDoc sourceFileName,
67         Map JavaDoc parameters,
68         Connection JavaDoc conn
69         ) throws JRException
70     {
71         JasperRunManager.runReportToPdfFile(
72             sourceFileName,
73             parameters,
74             conn
75             );
76     }
77
78
79     /**
80      * @deprecated Replaced by {@link JasperRunManager#runReportToPdfFile(String, String, Map, Connection)}.
81      */

82     public static void runReportToPdfFile(
83         String JavaDoc sourceFileName,
84         String JavaDoc destFileName,
85         Map JavaDoc parameters,
86         Connection JavaDoc conn
87         ) throws JRException
88     {
89         JasperRunManager.runReportToPdfFile(
90             sourceFileName,
91             destFileName,
92             parameters,
93             conn
94             );
95     }
96
97
98     /**
99      * @deprecated Replaced by {@link JasperRunManager#runReportToPdfStream(InputStream, OutputStream, Map, Connection)}.
100      */

101     public static void runReportToPdfStream(
102         InputStream JavaDoc inputStream,
103         OutputStream JavaDoc outputStream,
104         Map JavaDoc parameters,
105         Connection JavaDoc conn
106         ) throws JRException
107     {
108         JasperRunManager.runReportToPdfStream(
109             inputStream,
110             outputStream,
111             parameters,
112             conn
113             );
114     }
115
116
117     /**
118      * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(String, Map, Connection)}.
119      */

120     public static byte[] runReportToPdf(
121         String JavaDoc sourceFileName,
122         Map JavaDoc parameters,
123         Connection JavaDoc conn
124         ) throws JRException
125     {
126         return JasperRunManager.runReportToPdf(
127             sourceFileName,
128             parameters,
129             conn
130             );
131     }
132
133
134     /**
135      * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(InputStream, Map, Connection)}.
136      */

137     public static byte[] runReportToPdf(
138         InputStream JavaDoc inputStream,
139         Map JavaDoc parameters,
140         Connection JavaDoc conn
141         ) throws JRException
142     {
143         return JasperRunManager.runReportToPdf(
144             inputStream,
145             parameters,
146             conn
147             );
148     }
149
150
151     /**
152      * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(JasperReport, Map, Connection)}.
153      */

154     public static byte[] runReportToPdf(
155         JasperReport jasperReport,
156         Map JavaDoc parameters,
157         Connection JavaDoc conn
158         ) throws JRException
159     {
160         return JasperRunManager.runReportToPdf(
161             jasperReport,
162             parameters,
163             conn
164             );
165     }
166
167
168     /**
169      * @deprecated Replaced by {@link JasperRunManager#runReportToPdfFile(String, Map, JRDataSource)}.
170      */

171     public static void runReportToPdfFile(
172         String JavaDoc sourceFileName,
173         Map JavaDoc parameters,
174         JRDataSource jrDataSource
175         ) throws JRException
176     {
177         JasperRunManager.runReportToPdfFile(
178             sourceFileName,
179             parameters,
180             jrDataSource
181             );
182     }
183
184
185     /**
186      * @deprecated Replaced by {@link JasperRunManager#runReportToPdfFile(String, String, Map, JRDataSource)}.
187      */

188     public static void runReportToPdfFile(
189         String JavaDoc sourceFileName,
190         String JavaDoc destFileName,
191         Map JavaDoc parameters,
192         JRDataSource jrDataSource
193         ) throws JRException
194     {
195         JasperRunManager.runReportToPdfFile(
196             sourceFileName,
197             destFileName,
198             parameters,
199             jrDataSource
200             );
201     }
202
203
204     /**
205      * @deprecated Replaced by {@link JasperRunManager#runReportToPdfStream(InputStream, OutputStream, Map, JRDataSource)}.
206      */

207     public static void runReportToPdfStream(
208         InputStream JavaDoc inputStream,
209         OutputStream JavaDoc outputStream,
210         Map JavaDoc parameters,
211         JRDataSource jrDataSource
212         ) throws JRException
213     {
214         JasperRunManager.runReportToPdfStream(
215             inputStream,
216             outputStream,
217             parameters,
218             jrDataSource
219             );
220     }
221
222
223     /**
224      * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(String, Map, JRDataSource)}.
225      */

226     public static byte[] runReportToPdf(
227         String JavaDoc sourceFileName,
228         Map JavaDoc parameters,
229         JRDataSource jrDataSource
230         ) throws JRException
231     {
232         return JasperRunManager.runReportToPdf(
233             sourceFileName,
234             parameters,
235             jrDataSource
236             );
237     }
238
239
240     /**
241      * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(InputStream, Map, JRDataSource)}.
242      */

243     public static byte[] runReportToPdf(
244         InputStream JavaDoc inputStream,
245         Map JavaDoc parameters,
246         JRDataSource jrDataSource
247         ) throws JRException
248     {
249         return JasperRunManager.runReportToPdf(
250             inputStream,
251             parameters,
252             jrDataSource
253             );
254     }
255
256
257     /**
258      * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(JasperReport, Map, JRDataSource)}.
259      */

260     public static byte[] runReportToPdf(
261         JasperReport jasperReport,
262         Map JavaDoc parameters,
263         JRDataSource jrDataSource
264         ) throws JRException
265     {
266         return JasperRunManager.runReportToPdf(
267             jasperReport,
268             parameters,
269             jrDataSource
270             );
271     }
272
273
274     /**
275      * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfFile(String)}.
276      */

277     public static String JavaDoc printReportToPdfFile(String JavaDoc sourceFileName) throws JRException
278     {
279         return JasperExportManager.exportReportToPdfFile(sourceFileName);
280     }
281
282
283     /**
284      * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfFile(String, String)}.
285      */

286     public static void printReportToPdfFile(
287         String JavaDoc sourceFileName,
288         String JavaDoc destFileName
289         ) throws JRException
290     {
291         JasperExportManager.exportReportToPdfFile(
292             sourceFileName,
293             destFileName
294             );
295     }
296
297
298     /**
299      * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfFile(JasperPrint, String)}.
300      */

301     public static void printReportToPdfFile(
302         JasperPrint jasperPrint,
303         String JavaDoc destFileName
304         ) throws JRException
305     {
306         JasperExportManager.exportReportToPdfFile(
307             jasperPrint,
308             destFileName
309             );
310     }
311
312
313     /**
314      * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfStream(InputStream, OutputStream)}.
315      */

316     public static void printReportToPdfStream(
317         InputStream JavaDoc inputStream,
318         OutputStream JavaDoc outputStream
319         ) throws JRException
320     {
321         JasperExportManager.exportReportToPdfStream(
322             inputStream,
323             outputStream
324             );
325     }
326
327
328     /**
329      * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfStream(JasperPrint, OutputStream)}.
330      */

331     public static void printReportToPdfStream(
332         JasperPrint jasperPrint,
333         OutputStream JavaDoc outputStream
334         ) throws JRException
335     {
336         JasperExportManager.exportReportToPdfStream(
337             jasperPrint,
338             outputStream
339             );
340     }
341
342
343     /**
344      * @deprecated Replaced by {@link JasperExportManager#exportReportToPdf(JasperPrint)}.
345      */

346     public static byte[] printReportToPdf(JasperPrint jasperPrint) throws JRException
347     {
348         return JasperExportManager.exportReportToPdf(jasperPrint);
349     }
350
351
352     /**
353      * @deprecated Replaced by {@link JasperPrintManager#printReport(String, boolean)}.
354      */

355     public static boolean printReport(
356         String JavaDoc sourceFileName,
357         boolean withPrintDialog
358         ) throws JRException
359     {
360         return JasperPrintManager.printReport(
361             sourceFileName,
362             withPrintDialog
363             );
364     }
365
366
367     /**
368      * @deprecated Replaced by {@link JasperPrintManager#printReport(InputStream, boolean)}.
369      */

370     public static boolean printReport(
371         InputStream JavaDoc inputStream,
372         boolean withPrintDialog
373         ) throws JRException
374     {
375         return JasperPrintManager.printReport(
376             inputStream,
377             withPrintDialog
378             );
379     }
380
381
382     /**
383      * @deprecated Replaced by {@link JasperPrintManager#printReport(JasperPrint, boolean)}.
384      */

385     public static boolean printReport(
386         JasperPrint jasperPrint,
387         boolean withPrintDialog
388         ) throws JRException
389     {
390         return JasperPrintManager.printReport(
391             jasperPrint,
392             withPrintDialog
393             );
394     }
395
396
397     /**
398      * @deprecated Replaced by {@link JasperPrintManager#printPage(String, int, boolean)}.
399      */

400     public static boolean printPage(
401         String JavaDoc sourceFileName,
402         int pageIndex,
403         boolean withPrintDialog
404         ) throws JRException
405     {
406         return JasperPrintManager.printPage(
407             sourceFileName,
408             pageIndex,
409             withPrintDialog
410             );
411     }
412
413
414     /**
415      * @deprecated Replaced by {@link JasperPrintManager#printPage(InputStream, int, boolean)}.
416      */

417     public static boolean printPage(
418         InputStream JavaDoc inputStream,
419         int pageIndex,
420         boolean withPrintDialog
421         ) throws JRException
422     {
423         return JasperPrintManager.printPage(
424             inputStream,
425             pageIndex,
426             withPrintDialog
427             );
428     }
429
430
431     /**
432      * @deprecated Replaced by {@link JasperPrintManager#printPage(JasperPrint, int, boolean)}.
433      */

434     public static boolean printPage(
435         JasperPrint jasperPrint,
436         int pageIndex,
437         boolean withPrintDialog
438         ) throws JRException
439     {
440         return JasperPrintManager.printPage(
441             jasperPrint,
442             pageIndex,
443             withPrintDialog
444             );
445     }
446
447
448     /**
449      * @deprecated Replaced by {@link JasperPrintManager#printPages(String, int, int, boolean)}.
450      */

451     public static boolean printPages(
452         String JavaDoc sourceFileName,
453         int firstPageIndex,
454         int lastPageIndex,
455         boolean withPrintDialog
456         ) throws JRException
457     {
458         return JasperPrintManager.printPages(
459             sourceFileName,
460             firstPageIndex,
461             lastPageIndex,
462             withPrintDialog
463             );
464     }
465
466
467     /**
468      * @deprecated Replaced by {@link JasperPrintManager#printPages(InputStream, int, int, boolean)}.
469      */

470     public static boolean printPages(
471         InputStream JavaDoc inputStream,
472         int firstPageIndex,
473         int lastPageIndex,
474         boolean withPrintDialog
475         ) throws JRException
476     {
477         return JasperPrintManager.printPages(
478             inputStream,
479             firstPageIndex,
480             lastPageIndex,
481             withPrintDialog
482             );
483     }
484
485
486     /**
487      * @deprecated Replaced by {@link JasperPrintManager#printPages(JasperPrint, int, int, boolean)}.
488      */

489     public static boolean printPages(
490         JasperPrint jasperPrint,
491         int firstPageIndex,
492         int lastPageIndex,
493         boolean withPrintDialog
494         ) throws JRException
495     {
496         return JasperPrintManager.printPages(
497             jasperPrint,
498             firstPageIndex,
499             lastPageIndex,
500             withPrintDialog
501             );
502     }
503
504
505     /**
506      * @deprecated Replaced by {@link JasperPrintManager#printPageToImage(String, int, float)}.
507      */

508     public static Image JavaDoc printPageToImage(
509         String JavaDoc sourceFileName,
510         int pageIndex,
511         float zoom
512         ) throws JRException
513     {
514         return JasperPrintManager.printPageToImage(
515             sourceFileName,
516             pageIndex,
517             zoom
518             );
519     }
520
521
522     /**
523      * @deprecated Replaced by {@link JasperPrintManager#printPageToImage(InputStream, int, float)}.
524      */

525     public static Image JavaDoc printPageToImage(
526         InputStream JavaDoc inputStream,
527         int pageIndex,
528         float zoom
529         ) throws JRException
530     {
531         return JasperPrintManager.printPageToImage(
532             inputStream,
533             pageIndex,
534             zoom
535             );
536     }
537
538
539     /**
540      * @deprecated Replaced by {@link JasperPrintManager#printPageToImage(JasperPrint, int, float)}.
541      */

542     public static Image JavaDoc printPageToImage(
543         JasperPrint jasperPrint,
544         int pageIndex,
545         float zoom
546         ) throws JRException
547     {
548         return JasperPrintManager.printPageToImage(
549             jasperPrint,
550             pageIndex,
551             zoom
552             );
553     }
554
555
556     /**
557      * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(String, Map, Connection)}.
558      */

559     public static String JavaDoc fillReportToFile(
560         String JavaDoc sourceFileName,
561         Map JavaDoc parameters,
562         Connection JavaDoc conn
563         ) throws JRException
564     {
565         return JasperFillManager.fillReportToFile(
566             sourceFileName,
567             parameters,
568             conn
569             );
570     }
571
572
573     /**
574      * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(String, String, Map, Connection)}.
575      */

576     public static void fillReportToFile(
577         String JavaDoc sourceFileName,
578         String JavaDoc destFileName,
579         Map JavaDoc parameters,
580         Connection JavaDoc conn
581         ) throws JRException
582     {
583         JasperFillManager.fillReportToFile(
584             sourceFileName,
585             destFileName,
586             parameters,
587             conn
588             );
589     }
590
591
592     /**
593      * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(JasperReport, String, Map, Connection)}.
594      */

595     public static void fillReportToFile(
596         JasperReport jasperReport,
597         String JavaDoc destFileName,
598         Map JavaDoc parameters,
599         Connection JavaDoc conn
600         ) throws JRException
601     {
602         JasperFillManager.fillReportToFile(
603             jasperReport,
604             destFileName,
605             parameters,
606             conn
607             );
608     }
609
610
611     /**
612      * @deprecated Replaced by {@link JasperFillManager#fillReport(String, Map, Connection)}.
613      */

614     public static JasperPrint fillReport(
615         String JavaDoc sourceFileName,
616         Map JavaDoc parameters,
617         Connection JavaDoc conn
618         ) throws JRException
619     {
620         return JasperFillManager.fillReport(
621             sourceFileName,
622             parameters,
623             conn
624             );
625     }
626
627
628     /**
629      * @deprecated Replaced by {@link JasperFillManager#fillReportToStream(InputStream, OutputStream, Map, Connection)}.
630      */

631     public static void fillReportToStream(
632         InputStream JavaDoc inputStream,
633         OutputStream JavaDoc outputStream,
634         Map JavaDoc parameters,
635         Connection JavaDoc conn
636         ) throws JRException
637     {
638         JasperFillManager.fillReportToStream(
639             inputStream,
640             outputStream,
641             parameters,
642             conn
643             );
644     }
645
646
647     /**
648      * @deprecated Replaced by {@link JasperFillManager#fillReportToStream(JasperReport, OutputStream, Map, Connection)}.
649      */

650     public static void fillReportToStream(
651         JasperReport jasperReport,
652         OutputStream JavaDoc outputStream,
653         Map JavaDoc parameters,
654         Connection JavaDoc conn
655         ) throws JRException
656     {
657         JasperFillManager.fillReportToStream(
658             jasperReport,
659             outputStream,
660             parameters,
661             conn
662             );
663     }
664
665
666     /**
667      * @deprecated Replaced by {@link JasperFillManager#fillReport(InputStream, Map, Connection)}.
668      */

669     public static JasperPrint fillReport(
670         InputStream JavaDoc inputStream,
671         Map JavaDoc parameters,
672         Connection JavaDoc conn
673         ) throws JRException
674     {
675         return JasperFillManager.fillReport(
676             inputStream,
677             parameters,
678             conn
679             );
680     }
681
682     
683     /**
684      * @deprecated Replaced by {@link JasperFillManager#fillReport(JasperReport, Map, Connection)}.
685      */

686     public static JasperPrint fillReport(
687         JasperReport jasperReport,
688         Map JavaDoc parameters,
689         Connection JavaDoc conn
690         ) throws JRException
691     {
692         return JasperFillManager.fillReport(
693             jasperReport,
694             parameters,
695             conn
696             );
697     }
698
699     
700     /**
701      * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(String, Map, JRDataSource)}.
702      */

703     public static String JavaDoc fillReportToFile(
704         String JavaDoc sourceFileName,
705         Map JavaDoc parameters,
706         JRDataSource jrDataSource
707         ) throws JRException
708     {
709         return JasperFillManager.fillReportToFile(
710             sourceFileName,
711             parameters,
712             jrDataSource
713             );
714     }
715
716     
717     /**
718      * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(String, String, Map, JRDataSource)}.
719      */

720     public static void fillReportToFile(
721         String JavaDoc sourceFileName,
722         String JavaDoc destFileName,
723         Map JavaDoc parameters,
724         JRDataSource jrDataSource
725         ) throws JRException
726     {
727         JasperFillManager.fillReportToFile(
728             sourceFileName,
729             destFileName,
730             parameters,
731             jrDataSource
732             );
733     }
734
735     
736     /**
737      * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(JasperReport, String, Map, JRDataSource)}.
738      */

739     public static void fillReportToFile(
740         JasperReport jasperReport,
741         String JavaDoc destFileName,
742         Map JavaDoc parameters,
743         JRDataSource jrDataSource
744         ) throws JRException
745     {
746         JasperFillManager.fillReportToFile(
747             jasperReport,
748             destFileName,
749             parameters,
750             jrDataSource
751             );
752     }
753
754     
755     /**
756      * @deprecated Replaced by {@link JasperFillManager#fillReport(String, Map, JRDataSource)}.
757      */

758     public static JasperPrint fillReport(
759         String JavaDoc sourceFileName,
760         Map JavaDoc parameters,
761         JRDataSource jrDataSource
762         ) throws JRException
763     {
764         return JasperFillManager.fillReport(
765             sourceFileName,
766             parameters,
767             jrDataSource
768             );
769     }
770
771     
772     /**
773      * @deprecated Replaced by {@link JasperFillManager#fillReportToStream(InputStream, OutputStream, Map, JRDataSource)}.
774      */

775     public static void fillReportToStream(
776         InputStream JavaDoc inputStream,
777         OutputStream JavaDoc outputStream,
778         Map JavaDoc parameters,
779         JRDataSource jrDataSource
780         ) throws JRException
781     {
782         JasperFillManager.fillReportToStream(
783             inputStream,
784             outputStream,
785             parameters,
786             jrDataSource
787             );
788     }
789
790     
791     /**
792      * @deprecated Replaced by {@link JasperFillManager#fillReportToStream(JasperReport, OutputStream, Map, JRDataSource)}.
793      */

794     public static void fillReportToStream(
795         JasperReport jasperReport,
796         OutputStream JavaDoc outputStream,
797         Map JavaDoc parameters,
798         JRDataSource jrDataSource
799         ) throws JRException
800     {
801         JasperFillManager.fillReportToStream(
802             jasperReport,
803             outputStream,
804             parameters,
805             jrDataSource
806             );
807     }
808
809     
810     /**
811      * @deprecated Replaced by {@link JasperFillManager#fillReport(InputStream, Map, JRDataSource)}.
812      */

813     public static JasperPrint fillReport(
814         InputStream JavaDoc inputStream,
815         Map JavaDoc parameters,
816         JRDataSource jrDataSource
817         ) throws JRException
818     {
819         return JasperFillManager.fillReport(
820             inputStream,
821             parameters,
822             jrDataSource
823             );
824     }
825
826     
827     /**
828      * @deprecated Replaced by {@link JasperFillManager#fillReport(JasperReport, Map, JRDataSource)}.
829      */

830     public static JasperPrint fillReport(
831         JasperReport jasperReport,
832         Map JavaDoc parameters,
833         JRDataSource jrDataSource
834         ) throws JRException
835     {
836         return JasperFillManager.fillReport(
837             jasperReport,
838             parameters,
839             jrDataSource
840             );
841     }
842
843     
844     /**
845      * @deprecated Replaced by {@link JasperCompileManager#compileReportToFile(String)}.
846      */

847     public static String JavaDoc compileReportToFile(String JavaDoc sourceFileName) throws JRException
848     {
849         return JasperCompileManager.compileReportToFile(sourceFileName);
850     }
851
852
853     /**
854      * @deprecated Replaced by {@link JasperCompileManager#compileReportToFile(String, String)}.
855      */

856     public static void compileReportToFile(
857         String JavaDoc sourceFileName,
858         String JavaDoc destFileName
859         ) throws JRException
860     {
861         JasperCompileManager.compileReportToFile(
862             sourceFileName,
863             destFileName
864             );
865     }
866
867
868     /**
869      * @deprecated Replaced by {@link JasperCompileManager#compileReportToFile(JasperDesign, String)}.
870      */

871     public static void compileReportToFile(
872         JasperDesign jasperDesign,
873         String JavaDoc destFileName
874         ) throws JRException
875     {
876         JasperCompileManager.compileReportToFile(
877             jasperDesign,
878             destFileName
879             );
880     }
881
882
883     /**
884      * @deprecated Replaced by {@link JasperCompileManager#compileReport(String)}.
885      */

886     public static JasperReport compileReport(String JavaDoc sourceFileName) throws JRException
887     {
888         return JasperCompileManager.compileReport(sourceFileName);
889     }
890
891
892     /**
893      * @deprecated Replaced by {@link JasperCompileManager#compileReportToStream(InputStream, OutputStream)}.
894      */

895     public static void compileReportToStream(
896         InputStream JavaDoc inputStream,
897         OutputStream JavaDoc outputStream
898         ) throws JRException
899     {
900         JasperCompileManager.compileReportToStream(
901             inputStream,
902             outputStream
903             );
904     }
905
906
907     /**
908      * @deprecated Replaced by {@link JasperCompileManager#compileReportToStream(JasperDesign, OutputStream)}.
909      */

910     public static void compileReportToStream(
911         JasperDesign jasperDesign,
912         OutputStream JavaDoc outputStream
913         ) throws JRException
914     {
915         JasperCompileManager.compileReportToStream(
916             jasperDesign,
917             outputStream
918             );
919     }
920
921
922     /**
923      * @deprecated Replaced by {@link JasperCompileManager#compileReport(InputStream)}.
924      */

925     public static JasperReport compileReport(InputStream JavaDoc inputStream) throws JRException
926     {
927         return JasperCompileManager.compileReport(inputStream);
928     }
929
930
931     /**
932      * @deprecated Replaced by {@link JasperCompileManager#compileReport(JasperDesign)}.
933      */

934     public static JasperReport compileReport(JasperDesign jasperDesign) throws JRException
935     {
936         return JasperCompileManager.compileReport(jasperDesign);
937     }
938
939     /**
940      * @deprecated Replaced by {@link JasperCompileManager#verifyDesign(JasperDesign)}.
941      */

942     public static Collection JavaDoc verifyDesign(JasperDesign jasperDesign)
943     {
944         return JasperCompileManager.verifyDesign(jasperDesign);
945     }
946         
947
948     /**
949      * @deprecated Use {@link JRLoader#loadObject(String)} with the appropriate cast.
950      */

951     public static JasperDesign loadDesign(String JavaDoc fileName) throws JRException
952     {
953         return (JasperDesign)JRLoader.loadObject(fileName);
954     }
955
956
957     /**
958      * @deprecated Use {@link JRLoader#loadObject(InputStream)} with the appropriate cast.
959      */

960     public static JasperDesign loadDesign(InputStream JavaDoc inputStream) throws JRException
961     {
962         return (JasperDesign)JRLoader.loadObject(inputStream);
963     }
964
965
966     /**
967      * @deprecated Use {@link JRXmlLoader#load(String)} instead.
968      */

969     public static JasperDesign loadXmlDesign(String JavaDoc fileName) throws JRException
970     {
971         return JRXmlLoader.load(fileName);
972     }
973
974
975     /**
976      * @deprecated Use {@link JRXmlLoader#load(InputStream)} instead.
977      */

978     public static JasperDesign loadXmlDesign(InputStream JavaDoc inputStream) throws JRException
979     {
980         return JRXmlLoader.load(inputStream);
981     }
982
983
984     /**
985      * @deprecated Use {@link JRLoader#loadObject(String)} with the appropriate cast.
986      */

987     public static JasperReport loadReport(String JavaDoc fileName) throws JRException
988     {
989         return (JasperReport)JRLoader.loadObject(fileName);
990     }
991
992
993     /**
994      * @deprecated Use {@link JRLoader#loadObject(InputStream)} with the appropriate cast.
995      */

996     public static JasperReport loadReport(InputStream JavaDoc inputStream) throws JRException
997     {
998         return (JasperReport)JRLoader.loadObject(inputStream);
999     }
1000
1001
1002    /**
1003     * @deprecated Use {@link JRLoader#loadObject(String)} with the appropriate cast.
1004     */

1005    public static JasperPrint loadPrint(String JavaDoc fileName) throws JRException
1006    {
1007        return (JasperPrint)JRLoader.loadObject(fileName);
1008    }
1009
1010
1011    /**
1012     * @deprecated Use {@link JRLoader#loadObject(InputStream)} with the appropriate cast.
1013     */

1014    public static JasperPrint loadPrint(InputStream JavaDoc inputStream) throws JRException
1015    {
1016        return (JasperPrint)JRLoader.loadObject(inputStream);
1017    }
1018
1019
1020}
1021
Popular Tags