| java.lang.Object org.vfny.geoserver.wms.responses.helpers.JAISupport
JAISupport | final public class JAISupport (Code) | | Helper class to deal with JAI availability and image encoding
|
Field Summary | |
static ArrayList | testedFormats Array of mime types that have been tested to work.
Many of the mime types that JAI says it supports does not actually work.
These are mostly because of colour problems (ie. |
Method Summary | |
public static void | encode(String format, BufferedImage image, OutputStream outStream) Encodes a BufferedImage using JAI in format format and
sends it to outStream . | public static Set | getSupportedFormats() Returns the set of supported formats by the available JAI library, or
the empty set if not available. | public static boolean | isJaiAvailable() Returns wether the JAI library is available by checking the available
formats. |
testedFormats | static ArrayList testedFormats(Code) | | Array of mime types that have been tested to work.
Many of the mime types that JAI says it supports does not actually work.
These are mostly because of colour problems (ie. only supports grey scale, and we're giving it a ARGB).
Update this list as the supported formats are handled better!
If you dont do this, clients might request an non-functional format (cite does this).
The getSupportedFormats() will return a sub-set of these formats.
|
encode | public static void encode(String format, BufferedImage image, OutputStream outStream) throws IOException(Code) | | Encodes a BufferedImage using JAI in format format and
sends it to outStream .
Parameters: format - the MIME type of the output image in which to encodeimage through JAI Parameters: image - the actual image to be encoded in format format. Parameters: outStream - the encoded image destination. throws: IOException - if the image writing to outStream fails. throws: IllegalArgumentException - if format is not asupported output format for the installed JAI library. |
getSupportedFormats | public static Set getSupportedFormats()(Code) | | Returns the set of supported formats by the available JAI library, or
the empty set if not available.
Set<String> of the MIME types the available JAI librarysupports, or the empty set if it is not available. |
isJaiAvailable | public static boolean isJaiAvailable()(Code) | | Returns wether the JAI library is available by checking the available
formats.
true if JAI is available See Also: JAISupport.getSupportedFormats() |
|
|