Source Code Cross Referenced for JasperManager.java in  » Report » jasperreports-2.0.1 » net » sf » jasperreports » engine » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » jasperreports 2.0.1 » net.sf.jasperreports.engine 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * ============================================================================
003:         * GNU Lesser General Public License
004:         * ============================================================================
005:         *
006:         * JasperReports - Free Java report-generating library.
007:         * Copyright (C) 2001-2006 JasperSoft Corporation http://www.jaspersoft.com
008:         *
009:         * This library is free software; you can redistribute it and/or
010:         * modify it under the terms of the GNU Lesser General Public
011:         * License as published by the Free Software Foundation; either
012:         * version 2.1 of the License, or (at your option) any later version.
013:         *
014:         * This library is distributed in the hope that it will be useful,
015:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
016:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
017:         * Lesser General Public License for more details.
018:         *
019:         * You should have received a copy of the GNU Lesser General Public
020:         * License along with this library; if not, write to the Free Software
021:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
022:         *
023:         * JasperSoft Corporation
024:         * 303 Second Street, Suite 450 North
025:         * San Francisco, CA 94107
026:         * http://www.jaspersoft.com
027:         */
028:        package net.sf.jasperreports.engine;
029:
030:        import java.awt.Image;
031:        import java.io.InputStream;
032:        import java.io.OutputStream;
033:        import java.sql.Connection;
034:        import java.util.Collection;
035:        import java.util.Map;
036:
037:        import net.sf.jasperreports.engine.design.JasperDesign;
038:        import net.sf.jasperreports.engine.util.JRLoader;
039:        import net.sf.jasperreports.engine.xml.JRXmlLoader;
040:
041:        /**
042:         * General purpose façade class for the JasperReports engine.
043:         * It delegates almost all its functionality to the other specialized 
044:         * façade classes for compiling, filling, printing or exporting reports.
045:         * 
046:         * @see net.sf.jasperreports.engine.JasperCompileManager
047:         * @see net.sf.jasperreports.engine.JasperFillManager
048:         * @see net.sf.jasperreports.engine.JasperPrintManager
049:         * @see net.sf.jasperreports.engine.JasperExportManager
050:         * @see net.sf.jasperreports.engine.JasperRunManager
051:         * @see net.sf.jasperreports.engine.util.JRLoader
052:         * @see net.sf.jasperreports.engine.xml.JRXmlLoader
053:         * @deprecated Use the specialized façade classes for specific operations
054:         * @author Teodor Danciu (teodord@users.sourceforge.net)
055:         * @version $Id: JasperManager.java 1229 2006-04-19 10:27:35Z teodord $
056:         */
057:        public class JasperManager {
058:
059:            /**
060:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdfFile(String, Map, Connection)}.
061:             */
062:            public static void runReportToPdfFile(String sourceFileName,
063:                    Map parameters, Connection conn) throws JRException {
064:                JasperRunManager.runReportToPdfFile(sourceFileName, parameters,
065:                        conn);
066:            }
067:
068:            /**
069:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdfFile(String, String, Map, Connection)}.
070:             */
071:            public static void runReportToPdfFile(String sourceFileName,
072:                    String destFileName, Map parameters, Connection conn)
073:                    throws JRException {
074:                JasperRunManager.runReportToPdfFile(sourceFileName,
075:                        destFileName, parameters, conn);
076:            }
077:
078:            /**
079:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdfStream(InputStream, OutputStream, Map, Connection)}.
080:             */
081:            public static void runReportToPdfStream(InputStream inputStream,
082:                    OutputStream outputStream, Map parameters, Connection conn)
083:                    throws JRException {
084:                JasperRunManager.runReportToPdfStream(inputStream,
085:                        outputStream, parameters, conn);
086:            }
087:
088:            /**
089:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(String, Map, Connection)}.
090:             */
091:            public static byte[] runReportToPdf(String sourceFileName,
092:                    Map parameters, Connection conn) throws JRException {
093:                return JasperRunManager.runReportToPdf(sourceFileName,
094:                        parameters, conn);
095:            }
096:
097:            /**
098:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(InputStream, Map, Connection)}.
099:             */
100:            public static byte[] runReportToPdf(InputStream inputStream,
101:                    Map parameters, Connection conn) throws JRException {
102:                return JasperRunManager.runReportToPdf(inputStream, parameters,
103:                        conn);
104:            }
105:
106:            /**
107:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(JasperReport, Map, Connection)}.
108:             */
109:            public static byte[] runReportToPdf(JasperReport jasperReport,
110:                    Map parameters, Connection conn) throws JRException {
111:                return JasperRunManager.runReportToPdf(jasperReport,
112:                        parameters, conn);
113:            }
114:
115:            /**
116:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdfFile(String, Map, JRDataSource)}.
117:             */
118:            public static void runReportToPdfFile(String sourceFileName,
119:                    Map parameters, JRDataSource jrDataSource)
120:                    throws JRException {
121:                JasperRunManager.runReportToPdfFile(sourceFileName, parameters,
122:                        jrDataSource);
123:            }
124:
125:            /**
126:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdfFile(String, String, Map, JRDataSource)}.
127:             */
128:            public static void runReportToPdfFile(String sourceFileName,
129:                    String destFileName, Map parameters,
130:                    JRDataSource jrDataSource) throws JRException {
131:                JasperRunManager.runReportToPdfFile(sourceFileName,
132:                        destFileName, parameters, jrDataSource);
133:            }
134:
135:            /**
136:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdfStream(InputStream, OutputStream, Map, JRDataSource)}.
137:             */
138:            public static void runReportToPdfStream(InputStream inputStream,
139:                    OutputStream outputStream, Map parameters,
140:                    JRDataSource jrDataSource) throws JRException {
141:                JasperRunManager.runReportToPdfStream(inputStream,
142:                        outputStream, parameters, jrDataSource);
143:            }
144:
145:            /**
146:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(String, Map, JRDataSource)}.
147:             */
148:            public static byte[] runReportToPdf(String sourceFileName,
149:                    Map parameters, JRDataSource jrDataSource)
150:                    throws JRException {
151:                return JasperRunManager.runReportToPdf(sourceFileName,
152:                        parameters, jrDataSource);
153:            }
154:
155:            /**
156:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(InputStream, Map, JRDataSource)}.
157:             */
158:            public static byte[] runReportToPdf(InputStream inputStream,
159:                    Map parameters, JRDataSource jrDataSource)
160:                    throws JRException {
161:                return JasperRunManager.runReportToPdf(inputStream, parameters,
162:                        jrDataSource);
163:            }
164:
165:            /**
166:             * @deprecated Replaced by {@link JasperRunManager#runReportToPdf(JasperReport, Map, JRDataSource)}.
167:             */
168:            public static byte[] runReportToPdf(JasperReport jasperReport,
169:                    Map parameters, JRDataSource jrDataSource)
170:                    throws JRException {
171:                return JasperRunManager.runReportToPdf(jasperReport,
172:                        parameters, jrDataSource);
173:            }
174:
175:            /**
176:             * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfFile(String)}.
177:             */
178:            public static String printReportToPdfFile(String sourceFileName)
179:                    throws JRException {
180:                return JasperExportManager
181:                        .exportReportToPdfFile(sourceFileName);
182:            }
183:
184:            /**
185:             * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfFile(String, String)}.
186:             */
187:            public static void printReportToPdfFile(String sourceFileName,
188:                    String destFileName) throws JRException {
189:                JasperExportManager.exportReportToPdfFile(sourceFileName,
190:                        destFileName);
191:            }
192:
193:            /**
194:             * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfFile(JasperPrint, String)}.
195:             */
196:            public static void printReportToPdfFile(JasperPrint jasperPrint,
197:                    String destFileName) throws JRException {
198:                JasperExportManager.exportReportToPdfFile(jasperPrint,
199:                        destFileName);
200:            }
201:
202:            /**
203:             * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfStream(InputStream, OutputStream)}.
204:             */
205:            public static void printReportToPdfStream(InputStream inputStream,
206:                    OutputStream outputStream) throws JRException {
207:                JasperExportManager.exportReportToPdfStream(inputStream,
208:                        outputStream);
209:            }
210:
211:            /**
212:             * @deprecated Replaced by {@link JasperExportManager#exportReportToPdfStream(JasperPrint, OutputStream)}.
213:             */
214:            public static void printReportToPdfStream(JasperPrint jasperPrint,
215:                    OutputStream outputStream) throws JRException {
216:                JasperExportManager.exportReportToPdfStream(jasperPrint,
217:                        outputStream);
218:            }
219:
220:            /**
221:             * @deprecated Replaced by {@link JasperExportManager#exportReportToPdf(JasperPrint)}.
222:             */
223:            public static byte[] printReportToPdf(JasperPrint jasperPrint)
224:                    throws JRException {
225:                return JasperExportManager.exportReportToPdf(jasperPrint);
226:            }
227:
228:            /**
229:             * @deprecated Replaced by {@link JasperPrintManager#printReport(String, boolean)}.
230:             */
231:            public static boolean printReport(String sourceFileName,
232:                    boolean withPrintDialog) throws JRException {
233:                return JasperPrintManager.printReport(sourceFileName,
234:                        withPrintDialog);
235:            }
236:
237:            /**
238:             * @deprecated Replaced by {@link JasperPrintManager#printReport(InputStream, boolean)}.
239:             */
240:            public static boolean printReport(InputStream inputStream,
241:                    boolean withPrintDialog) throws JRException {
242:                return JasperPrintManager.printReport(inputStream,
243:                        withPrintDialog);
244:            }
245:
246:            /**
247:             * @deprecated Replaced by {@link JasperPrintManager#printReport(JasperPrint, boolean)}.
248:             */
249:            public static boolean printReport(JasperPrint jasperPrint,
250:                    boolean withPrintDialog) throws JRException {
251:                return JasperPrintManager.printReport(jasperPrint,
252:                        withPrintDialog);
253:            }
254:
255:            /**
256:             * @deprecated Replaced by {@link JasperPrintManager#printPage(String, int, boolean)}.
257:             */
258:            public static boolean printPage(String sourceFileName,
259:                    int pageIndex, boolean withPrintDialog) throws JRException {
260:                return JasperPrintManager.printPage(sourceFileName, pageIndex,
261:                        withPrintDialog);
262:            }
263:
264:            /**
265:             * @deprecated Replaced by {@link JasperPrintManager#printPage(InputStream, int, boolean)}.
266:             */
267:            public static boolean printPage(InputStream inputStream,
268:                    int pageIndex, boolean withPrintDialog) throws JRException {
269:                return JasperPrintManager.printPage(inputStream, pageIndex,
270:                        withPrintDialog);
271:            }
272:
273:            /**
274:             * @deprecated Replaced by {@link JasperPrintManager#printPage(JasperPrint, int, boolean)}.
275:             */
276:            public static boolean printPage(JasperPrint jasperPrint,
277:                    int pageIndex, boolean withPrintDialog) throws JRException {
278:                return JasperPrintManager.printPage(jasperPrint, pageIndex,
279:                        withPrintDialog);
280:            }
281:
282:            /**
283:             * @deprecated Replaced by {@link JasperPrintManager#printPages(String, int, int, boolean)}.
284:             */
285:            public static boolean printPages(String sourceFileName,
286:                    int firstPageIndex, int lastPageIndex,
287:                    boolean withPrintDialog) throws JRException {
288:                return JasperPrintManager.printPages(sourceFileName,
289:                        firstPageIndex, lastPageIndex, withPrintDialog);
290:            }
291:
292:            /**
293:             * @deprecated Replaced by {@link JasperPrintManager#printPages(InputStream, int, int, boolean)}.
294:             */
295:            public static boolean printPages(InputStream inputStream,
296:                    int firstPageIndex, int lastPageIndex,
297:                    boolean withPrintDialog) throws JRException {
298:                return JasperPrintManager.printPages(inputStream,
299:                        firstPageIndex, lastPageIndex, withPrintDialog);
300:            }
301:
302:            /**
303:             * @deprecated Replaced by {@link JasperPrintManager#printPages(JasperPrint, int, int, boolean)}.
304:             */
305:            public static boolean printPages(JasperPrint jasperPrint,
306:                    int firstPageIndex, int lastPageIndex,
307:                    boolean withPrintDialog) throws JRException {
308:                return JasperPrintManager.printPages(jasperPrint,
309:                        firstPageIndex, lastPageIndex, withPrintDialog);
310:            }
311:
312:            /**
313:             * @deprecated Replaced by {@link JasperPrintManager#printPageToImage(String, int, float)}.
314:             */
315:            public static Image printPageToImage(String sourceFileName,
316:                    int pageIndex, float zoom) throws JRException {
317:                return JasperPrintManager.printPageToImage(sourceFileName,
318:                        pageIndex, zoom);
319:            }
320:
321:            /**
322:             * @deprecated Replaced by {@link JasperPrintManager#printPageToImage(InputStream, int, float)}.
323:             */
324:            public static Image printPageToImage(InputStream inputStream,
325:                    int pageIndex, float zoom) throws JRException {
326:                return JasperPrintManager.printPageToImage(inputStream,
327:                        pageIndex, zoom);
328:            }
329:
330:            /**
331:             * @deprecated Replaced by {@link JasperPrintManager#printPageToImage(JasperPrint, int, float)}.
332:             */
333:            public static Image printPageToImage(JasperPrint jasperPrint,
334:                    int pageIndex, float zoom) throws JRException {
335:                return JasperPrintManager.printPageToImage(jasperPrint,
336:                        pageIndex, zoom);
337:            }
338:
339:            /**
340:             * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(String, Map, Connection)}.
341:             */
342:            public static String fillReportToFile(String sourceFileName,
343:                    Map parameters, Connection conn) throws JRException {
344:                return JasperFillManager.fillReportToFile(sourceFileName,
345:                        parameters, conn);
346:            }
347:
348:            /**
349:             * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(String, String, Map, Connection)}.
350:             */
351:            public static void fillReportToFile(String sourceFileName,
352:                    String destFileName, Map parameters, Connection conn)
353:                    throws JRException {
354:                JasperFillManager.fillReportToFile(sourceFileName,
355:                        destFileName, parameters, conn);
356:            }
357:
358:            /**
359:             * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(JasperReport, String, Map, Connection)}.
360:             */
361:            public static void fillReportToFile(JasperReport jasperReport,
362:                    String destFileName, Map parameters, Connection conn)
363:                    throws JRException {
364:                JasperFillManager.fillReportToFile(jasperReport, destFileName,
365:                        parameters, conn);
366:            }
367:
368:            /**
369:             * @deprecated Replaced by {@link JasperFillManager#fillReport(String, Map, Connection)}.
370:             */
371:            public static JasperPrint fillReport(String sourceFileName,
372:                    Map parameters, Connection conn) throws JRException {
373:                return JasperFillManager.fillReport(sourceFileName, parameters,
374:                        conn);
375:            }
376:
377:            /**
378:             * @deprecated Replaced by {@link JasperFillManager#fillReportToStream(InputStream, OutputStream, Map, Connection)}.
379:             */
380:            public static void fillReportToStream(InputStream inputStream,
381:                    OutputStream outputStream, Map parameters, Connection conn)
382:                    throws JRException {
383:                JasperFillManager.fillReportToStream(inputStream, outputStream,
384:                        parameters, conn);
385:            }
386:
387:            /**
388:             * @deprecated Replaced by {@link JasperFillManager#fillReportToStream(JasperReport, OutputStream, Map, Connection)}.
389:             */
390:            public static void fillReportToStream(JasperReport jasperReport,
391:                    OutputStream outputStream, Map parameters, Connection conn)
392:                    throws JRException {
393:                JasperFillManager.fillReportToStream(jasperReport,
394:                        outputStream, parameters, conn);
395:            }
396:
397:            /**
398:             * @deprecated Replaced by {@link JasperFillManager#fillReport(InputStream, Map, Connection)}.
399:             */
400:            public static JasperPrint fillReport(InputStream inputStream,
401:                    Map parameters, Connection conn) throws JRException {
402:                return JasperFillManager.fillReport(inputStream, parameters,
403:                        conn);
404:            }
405:
406:            /**
407:             * @deprecated Replaced by {@link JasperFillManager#fillReport(JasperReport, Map, Connection)}.
408:             */
409:            public static JasperPrint fillReport(JasperReport jasperReport,
410:                    Map parameters, Connection conn) throws JRException {
411:                return JasperFillManager.fillReport(jasperReport, parameters,
412:                        conn);
413:            }
414:
415:            /**
416:             * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(String, Map, JRDataSource)}.
417:             */
418:            public static String fillReportToFile(String sourceFileName,
419:                    Map parameters, JRDataSource jrDataSource)
420:                    throws JRException {
421:                return JasperFillManager.fillReportToFile(sourceFileName,
422:                        parameters, jrDataSource);
423:            }
424:
425:            /**
426:             * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(String, String, Map, JRDataSource)}.
427:             */
428:            public static void fillReportToFile(String sourceFileName,
429:                    String destFileName, Map parameters,
430:                    JRDataSource jrDataSource) throws JRException {
431:                JasperFillManager.fillReportToFile(sourceFileName,
432:                        destFileName, parameters, jrDataSource);
433:            }
434:
435:            /**
436:             * @deprecated Replaced by {@link JasperFillManager#fillReportToFile(JasperReport, String, Map, JRDataSource)}.
437:             */
438:            public static void fillReportToFile(JasperReport jasperReport,
439:                    String destFileName, Map parameters,
440:                    JRDataSource jrDataSource) throws JRException {
441:                JasperFillManager.fillReportToFile(jasperReport, destFileName,
442:                        parameters, jrDataSource);
443:            }
444:
445:            /**
446:             * @deprecated Replaced by {@link JasperFillManager#fillReport(String, Map, JRDataSource)}.
447:             */
448:            public static JasperPrint fillReport(String sourceFileName,
449:                    Map parameters, JRDataSource jrDataSource)
450:                    throws JRException {
451:                return JasperFillManager.fillReport(sourceFileName, parameters,
452:                        jrDataSource);
453:            }
454:
455:            /**
456:             * @deprecated Replaced by {@link JasperFillManager#fillReportToStream(InputStream, OutputStream, Map, JRDataSource)}.
457:             */
458:            public static void fillReportToStream(InputStream inputStream,
459:                    OutputStream outputStream, Map parameters,
460:                    JRDataSource jrDataSource) throws JRException {
461:                JasperFillManager.fillReportToStream(inputStream, outputStream,
462:                        parameters, jrDataSource);
463:            }
464:
465:            /**
466:             * @deprecated Replaced by {@link JasperFillManager#fillReportToStream(JasperReport, OutputStream, Map, JRDataSource)}.
467:             */
468:            public static void fillReportToStream(JasperReport jasperReport,
469:                    OutputStream outputStream, Map parameters,
470:                    JRDataSource jrDataSource) throws JRException {
471:                JasperFillManager.fillReportToStream(jasperReport,
472:                        outputStream, parameters, jrDataSource);
473:            }
474:
475:            /**
476:             * @deprecated Replaced by {@link JasperFillManager#fillReport(InputStream, Map, JRDataSource)}.
477:             */
478:            public static JasperPrint fillReport(InputStream inputStream,
479:                    Map parameters, JRDataSource jrDataSource)
480:                    throws JRException {
481:                return JasperFillManager.fillReport(inputStream, parameters,
482:                        jrDataSource);
483:            }
484:
485:            /**
486:             * @deprecated Replaced by {@link JasperFillManager#fillReport(JasperReport, Map, JRDataSource)}.
487:             */
488:            public static JasperPrint fillReport(JasperReport jasperReport,
489:                    Map parameters, JRDataSource jrDataSource)
490:                    throws JRException {
491:                return JasperFillManager.fillReport(jasperReport, parameters,
492:                        jrDataSource);
493:            }
494:
495:            /**
496:             * @deprecated Replaced by {@link JasperCompileManager#compileReportToFile(String)}.
497:             */
498:            public static String compileReportToFile(String sourceFileName)
499:                    throws JRException {
500:                return JasperCompileManager.compileReportToFile(sourceFileName);
501:            }
502:
503:            /**
504:             * @deprecated Replaced by {@link JasperCompileManager#compileReportToFile(String, String)}.
505:             */
506:            public static void compileReportToFile(String sourceFileName,
507:                    String destFileName) throws JRException {
508:                JasperCompileManager.compileReportToFile(sourceFileName,
509:                        destFileName);
510:            }
511:
512:            /**
513:             * @deprecated Replaced by {@link JasperCompileManager#compileReportToFile(JasperDesign, String)}.
514:             */
515:            public static void compileReportToFile(JasperDesign jasperDesign,
516:                    String destFileName) throws JRException {
517:                JasperCompileManager.compileReportToFile(jasperDesign,
518:                        destFileName);
519:            }
520:
521:            /**
522:             * @deprecated Replaced by {@link JasperCompileManager#compileReport(String)}.
523:             */
524:            public static JasperReport compileReport(String sourceFileName)
525:                    throws JRException {
526:                return JasperCompileManager.compileReport(sourceFileName);
527:            }
528:
529:            /**
530:             * @deprecated Replaced by {@link JasperCompileManager#compileReportToStream(InputStream, OutputStream)}.
531:             */
532:            public static void compileReportToStream(InputStream inputStream,
533:                    OutputStream outputStream) throws JRException {
534:                JasperCompileManager.compileReportToStream(inputStream,
535:                        outputStream);
536:            }
537:
538:            /**
539:             * @deprecated Replaced by {@link JasperCompileManager#compileReportToStream(JasperDesign, OutputStream)}.
540:             */
541:            public static void compileReportToStream(JasperDesign jasperDesign,
542:                    OutputStream outputStream) throws JRException {
543:                JasperCompileManager.compileReportToStream(jasperDesign,
544:                        outputStream);
545:            }
546:
547:            /**
548:             * @deprecated Replaced by {@link JasperCompileManager#compileReport(InputStream)}.
549:             */
550:            public static JasperReport compileReport(InputStream inputStream)
551:                    throws JRException {
552:                return JasperCompileManager.compileReport(inputStream);
553:            }
554:
555:            /**
556:             * @deprecated Replaced by {@link JasperCompileManager#compileReport(JasperDesign)}.
557:             */
558:            public static JasperReport compileReport(JasperDesign jasperDesign)
559:                    throws JRException {
560:                return JasperCompileManager.compileReport(jasperDesign);
561:            }
562:
563:            /**
564:             * @deprecated Replaced by {@link JasperCompileManager#verifyDesign(JasperDesign)}.
565:             */
566:            public static Collection verifyDesign(JasperDesign jasperDesign) {
567:                return JasperCompileManager.verifyDesign(jasperDesign);
568:            }
569:
570:            /**
571:             * @deprecated Use {@link JRLoader#loadObject(String)} with the appropriate cast.
572:             */
573:            public static JasperDesign loadDesign(String fileName)
574:                    throws JRException {
575:                return (JasperDesign) JRLoader.loadObject(fileName);
576:            }
577:
578:            /**
579:             * @deprecated Use {@link JRLoader#loadObject(InputStream)} with the appropriate cast.
580:             */
581:            public static JasperDesign loadDesign(InputStream inputStream)
582:                    throws JRException {
583:                return (JasperDesign) JRLoader.loadObject(inputStream);
584:            }
585:
586:            /**
587:             * @deprecated Use {@link JRXmlLoader#load(String)} instead.
588:             */
589:            public static JasperDesign loadXmlDesign(String fileName)
590:                    throws JRException {
591:                return JRXmlLoader.load(fileName);
592:            }
593:
594:            /**
595:             * @deprecated Use {@link JRXmlLoader#load(InputStream)} instead.
596:             */
597:            public static JasperDesign loadXmlDesign(InputStream inputStream)
598:                    throws JRException {
599:                return JRXmlLoader.load(inputStream);
600:            }
601:
602:            /**
603:             * @deprecated Use {@link JRLoader#loadObject(String)} with the appropriate cast.
604:             */
605:            public static JasperReport loadReport(String fileName)
606:                    throws JRException {
607:                return (JasperReport) JRLoader.loadObject(fileName);
608:            }
609:
610:            /**
611:             * @deprecated Use {@link JRLoader#loadObject(InputStream)} with the appropriate cast.
612:             */
613:            public static JasperReport loadReport(InputStream inputStream)
614:                    throws JRException {
615:                return (JasperReport) JRLoader.loadObject(inputStream);
616:            }
617:
618:            /**
619:             * @deprecated Use {@link JRLoader#loadObject(String)} with the appropriate cast.
620:             */
621:            public static JasperPrint loadPrint(String fileName)
622:                    throws JRException {
623:                return (JasperPrint) JRLoader.loadObject(fileName);
624:            }
625:
626:            /**
627:             * @deprecated Use {@link JRLoader#loadObject(InputStream)} with the appropriate cast.
628:             */
629:            public static JasperPrint loadPrint(InputStream inputStream)
630:                    throws JRException {
631:                return (JasperPrint) JRLoader.loadObject(inputStream);
632:            }
633:
634:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.