| |
|
| java.lang.Object com.sun.perseus.j2d.ImageLoaderUtil
ImageLoaderUtil | public class ImageLoaderUtil (Code) | | This class contains utility methods which make ImageLoader
implementations easier.
version: $Id: ImageLoaderUtil.java,v 1.12 2006/04/21 06:34:56 st125089 Exp $ |
Inner Class :static class Base64StringStream extends InputStream | |
BASE64_HREF_PREFIX | final static String BASE64_HREF_PREFIX(Code) | | HREF prefix for Base64 encoded images with unspecified media type
|
BASE64_HREF_PREFIX_LENGTH | final static int BASE64_HREF_PREFIX_LENGTH(Code) | | Length of the HREF prefix for Base64 encoded images with
unspecified media type
|
BASE64_JPG_HREF_PREFIX | final static String BASE64_JPG_HREF_PREFIX(Code) | | HREF prefix for Base64 encoded JPEG files
|
BASE64_JPG_HREF_PREFIX2 | final static String BASE64_JPG_HREF_PREFIX2(Code) | | HREF prefix for Base64 encoded JPEG files
|
BASE64_JPG_HREF_PREFIX2_LENGTH | final static int BASE64_JPG_HREF_PREFIX2_LENGTH(Code) | | Length of the HREF prefix for Base64 encoded JPEG files
|
BASE64_JPG_HREF_PREFIX_LENGTH | final static int BASE64_JPG_HREF_PREFIX_LENGTH(Code) | | Length of the HREF prefix for Base64 encoded JPEG files
|
BASE64_PNG_HREF_PREFIX | final static String BASE64_PNG_HREF_PREFIX(Code) | | HREF prefix for Base64 encoded PNG files
|
BASE64_PNG_HREF_PREFIX_LENGTH | final static int BASE64_PNG_HREF_PREFIX_LENGTH(Code) | | Length of the HREF prefix for Base64 encoded PNG files
|
BASE64_PREFIX | final static String BASE64_PREFIX(Code) | | HREF prefix for all Base64 encoded images
|
BROKEN_IMAGE_COLOR | final static int BROKEN_IMAGE_COLOR(Code) | | Color used for broken content.
|
LOADING_IMAGE_COLOR | final static int LOADING_IMAGE_COLOR(Code) | | Color used for loading content.
|
brokenImage | protected RasterImage brokenImage(Code) | | Default, broken image returned if an image cannot be loaded.
|
loadingImage | protected RasterImage loadingImage(Code) | | Image used to symbolize loading state for an image.
|
ImageLoaderUtil | public ImageLoaderUtil()(Code) | | Default constructor
|
createImage | public RasterImage createImage(byte[] imageData)(Code) | | Creates a RasterImage from a byte array.
Parameters: b - the byte array containing the encoded imagedata. |
createImage | public RasterImage createImage(int[] imageData, int width, int height)(Code) | | Creates a RasterImage from an int array containing the pixel data
|
createPlaceholderImages | protected void createPlaceholderImages()(Code) | | |
getBrokenImage | public RasterImage getBrokenImage()(Code) | | Returns the image that should be used to represent an
image which could not be loaded.
the image to represent broken uris or content. |
getEmbededImage | public RasterImage getEmbededImage(String uri)(Code) | | Utility method to get an Image from Base64
encoded image data
Parameters: uri - the uri with encoded image data the decoded Image or brokenImage if the encoded datais invalid and could not be decoded. |
getExternalImage | public RasterImage getExternalImage(String href)(Code) | | Utility method to turn an image href into an Image. This assumes
that the href points to an external resource. This can
be tested on the href with the isDataURI method.
Parameters: href - the address from which to load the image content. the loaded image or brokenImage if the imagecould not be loaded. |
getLoadingImage | public RasterImage getLoadingImage()(Code) | | Returns the image that should be used to represent
an image which is loading.
the image to use to represent a pending loading. |
isDataURI | public boolean isDataURI(String uri)(Code) | | Returns true if the input uri is a data uri.
Parameters: uri - the URI to analyze. true if the input uri is a data uri. |
|
|
|