Package net.sf.jasperreports.engine.util
Class JRSaver
java.lang.Object
net.sf.jasperreports.engine.util.JRSaver
Utility class that can be used when serializable objects must be saved on disk
or sent over the network through an output stream.
Both the JasperDesign and
JasperReport classes implement the
java.io.Serializable interface. This allows users to store their report templates as
serialized objects either in their fully modifiable state
(JasperDesign objects) or in their
compiled form (JasperReport objects), using
various methods exposed by this class.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic voidsaveClassSource(String source, File file) static voidsaveObject(Object obj, File file) static voidsaveObject(Object obj, OutputStream os) static voidsaveObject(Object obj, String fileName) static voidsaveResource(String resource, File file)
-
Field Details
-
EXCEPTION_MESSAGE_KEY_EXPRESSIONS_CLASS_FILE_SAVE_ERROR
- See Also:
-
EXCEPTION_MESSAGE_KEY_FILE_SAVE_ERROR
- See Also:
-
EXCEPTION_MESSAGE_KEY_OUTPUT_STREAM_SAVE_ERROR
- See Also:
-
-
Method Details
-
saveObject
- Throws:
JRException
-
saveObject
- Throws:
JRException
-
saveObject
- Throws:
JRException
-
saveClassSource
- Throws:
JRException
-
saveResource
-