Top Description Methods
com.sun.javafx.iio

public Interface ImageLoaderFactory

Known Direct Implementers
com.sun.javafx.iio.bmp.BMPImageLoaderFactory, com.sun.javafx.iio.gif.GIFImageLoaderFactory, com.sun.javafx.iio.ios.IosImageLoaderFactory, com.sun.javafx.iio.java2d.J2DImageLoaderFactory, com.sun.javafx.iio.jpeg.JPEGImageLoaderFactory, com.sun.javafx.iio.png.PNGImageLoaderFactory
Imports
java.io.IOException, .InputStream

A factory which creates a loader for images stored in a given format.

Method Summary

Modifier and TypeMethod and Description
public ImageLoader

Returns:

a loader capable of decoding the supplied stream into an image.
createImageLoader
(InputStream
a stream containing an image in the supported format.
input
)

Creates a loader for the specified stream.

public ImageFormatDescription

Returns:

a description of the image format handled by this factory.
getFormatDescription
()

Gets a description of the image format for which this factory can create loaders.

Method Detail

createImageLoaderback to summary
public ImageLoader createImageLoader(InputStream input) throws IOException

Creates a loader for the specified stream. This stream must contain a sequence of bytes stored in the format handled by this factory, and must be positioned at the first byte of the signature for this format.

Parameters
input:InputStream

a stream containing an image in the supported format.

Returns:ImageLoader

a loader capable of decoding the supplied stream into an image.

Exceptions
IOException:
if there is an error creating the loader.
getFormatDescriptionback to summary
public ImageFormatDescription getFormatDescription()

Gets a description of the image format for which this factory can create loaders.

Returns:ImageFormatDescription

a description of the image format handled by this factory.