public final class JRSaver
extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_EXPRESSIONS_CLASS_FILE_SAVE_ERROR |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_FILE_SAVE_ERROR |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_OUTPUT_STREAM_SAVE_ERROR |
Modifier and Type | Method and Description |
---|---|
static void |
saveClassSource(java.lang.String source,
java.io.File file) |
static void |
saveObject(java.lang.Object obj,
java.io.File file) |
static void |
saveObject(java.lang.Object obj,
java.io.OutputStream os) |
static void |
saveObject(java.lang.Object obj,
java.lang.String fileName) |
static void |
saveResource(java.lang.String resource,
java.io.File file) |
public static final java.lang.String EXCEPTION_MESSAGE_KEY_EXPRESSIONS_CLASS_FILE_SAVE_ERROR
public static final java.lang.String EXCEPTION_MESSAGE_KEY_FILE_SAVE_ERROR
public static final java.lang.String EXCEPTION_MESSAGE_KEY_OUTPUT_STREAM_SAVE_ERROR
public static void saveObject(java.lang.Object obj, java.lang.String fileName) throws JRException
JRException
public static void saveObject(java.lang.Object obj, java.io.File file) throws JRException
JRException
public static void saveObject(java.lang.Object obj, java.io.OutputStream os) throws JRException
JRException
public static void saveClassSource(java.lang.String source, java.io.File file) throws JRException
JRException
public static void saveResource(java.lang.String resource, java.io.File file)
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com