net.sf.jasperreports.engine.util
public final class JRImageLoader extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
CHART_IMAGE
Deprecated.
Replaced by
CHART_IMAGE_RESOURCE . |
static java.lang.String |
CHART_IMAGE_RESOURCE |
static java.lang.String |
COMPONENT_IMAGE_RESOURCE |
static byte |
CROSSTAB_IMAGE
Deprecated.
Replaced by
CROSSTAB_IMAGE_RESOURCE . |
static java.lang.String |
CROSSTAB_IMAGE_RESOURCE |
static byte |
NO_IMAGE
Deprecated.
Replaced by
NO_IMAGE_RESOURCE . |
static java.lang.String |
NO_IMAGE_RESOURCE |
static java.lang.String |
PROPERTY_IMAGE_ENCODER
Configuration property specifying the name of the class implementing the
JRImageEncoder interface
to be used by the engine. |
static java.lang.String |
PROPERTY_IMAGE_READER
Configuration property specifying the name of the class implementing the
JRImageReader interface
to be used by the engine. |
static byte |
SUBREPORT_IMAGE
Deprecated.
Replaced by
SUBREPORT_IMAGE_RESOURCE . |
static java.lang.String |
SUBREPORT_IMAGE_RESOURCE |
Modifier and Type | Method and Description |
---|---|
static java.awt.Image |
getImage(byte index)
Deprecated.
To be removed in future releases.
|
static java.awt.Image |
loadImage(byte[] bytes) |
protected static java.awt.Image |
loadImage(java.lang.String image)
Deprecated.
To be removed in future releases.
|
static byte[] |
loadImageDataFromAWTImage(java.awt.image.BufferedImage bi)
Deprecated.
Replaced by
loadImageDataFromAWTImage(Image, byte) . |
static byte[] |
loadImageDataFromAWTImage(java.awt.Image image)
Deprecated.
Replaced by
loadImageDataFromAWTImage(Image, byte) . |
static byte[] |
loadImageDataFromAWTImage(java.awt.Image image,
byte imageType)
Encoding the image object using an image encoder that supports the supplied image type.
|
static byte[] |
loadImageDataFromFile(java.io.File file)
Deprecated.
Replaced by
JRLoader.loadBytes(File) . |
static byte[] |
loadImageDataFromInputStream(java.io.InputStream is)
Deprecated.
Replaced by
JRLoader.loadBytes(InputStream) . |
static byte[] |
loadImageDataFromLocation(java.lang.String location)
Deprecated.
Replaced by
JRLoader.loadBytesFromLocation(String) . |
static byte[] |
loadImageDataFromLocation(java.lang.String location,
java.lang.ClassLoader classLoader)
Deprecated.
Replaced by
JRLoader.loadBytesFromLocation(String, ClassLoader) . |
static byte[] |
loadImageDataFromLocation(java.lang.String location,
java.lang.ClassLoader classLoader,
java.net.URLStreamHandlerFactory urlHandlerFactory)
Deprecated.
|
static byte[] |
loadImageDataFromURL(java.net.URL url)
Deprecated.
Replaced by
JRLoader.loadBytes(URL) . |
public static final java.lang.String PROPERTY_IMAGE_READER
JRImageReader
interface
to be used by the engine. If not set, the engine will try to an image reader implementation that corresponds to the JVM version.public static final java.lang.String PROPERTY_IMAGE_ENCODER
JRImageEncoder
interface
to be used by the engine. If not set, the engine will try to an image encoder implementation that corresponds to the JVM version.public static final byte NO_IMAGE
NO_IMAGE_RESOURCE
.public static final byte SUBREPORT_IMAGE
SUBREPORT_IMAGE_RESOURCE
.public static final byte CHART_IMAGE
CHART_IMAGE_RESOURCE
.public static final byte CROSSTAB_IMAGE
CROSSTAB_IMAGE_RESOURCE
.public static final java.lang.String NO_IMAGE_RESOURCE
public static final java.lang.String SUBREPORT_IMAGE_RESOURCE
public static final java.lang.String CHART_IMAGE_RESOURCE
public static final java.lang.String CROSSTAB_IMAGE_RESOURCE
public static final java.lang.String COMPONENT_IMAGE_RESOURCE
public static byte[] loadImageDataFromFile(java.io.File file) throws JRException
JRLoader.loadBytes(File)
.JRException
public static byte[] loadImageDataFromURL(java.net.URL url) throws JRException
JRLoader.loadBytes(URL)
.JRException
public static byte[] loadImageDataFromInputStream(java.io.InputStream is) throws JRException
JRLoader.loadBytes(InputStream)
.JRException
public static byte[] loadImageDataFromLocation(java.lang.String location) throws JRException
JRLoader.loadBytesFromLocation(String)
.JRException
public static byte[] loadImageDataFromLocation(java.lang.String location, java.lang.ClassLoader classLoader) throws JRException
JRLoader.loadBytesFromLocation(String, ClassLoader)
.JRException
public static byte[] loadImageDataFromLocation(java.lang.String location, java.lang.ClassLoader classLoader, java.net.URLStreamHandlerFactory urlHandlerFactory) throws JRException
JRLoader.loadBytesFromLocation(String, ClassLoader, URLStreamHandlerFactory)
.JRException
public static byte[] loadImageDataFromAWTImage(java.awt.Image image, byte imageType) throws JRException
image
- the java.awt.Image object to encodeimageType
- the type of the image as specified by one of the constants defined in the JRRenderable interfaceJRException
public static byte[] loadImageDataFromAWTImage(java.awt.image.BufferedImage bi) throws JRException
loadImageDataFromAWTImage(Image, byte)
.JRException
public static byte[] loadImageDataFromAWTImage(java.awt.Image image) throws JRException
loadImageDataFromAWTImage(Image, byte)
.JRException
public static java.awt.Image getImage(byte index) throws JRException
JRException
public static java.awt.Image loadImage(byte[] bytes) throws JRException
JRException
protected static java.awt.Image loadImage(java.lang.String image) throws JRException
image
- the resource nameJRException
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com