Top Fields Constructors Methods
com.sun.javafx.iio.java2d

public Class J2DImageLoaderFactory

extends Object
implements ImageLoaderFactory
Class Inheritance
All Implemented Interfaces
com.sun.javafx.iio.ImageLoaderFactory
Imports
com.sun.javafx.iio.ImageFormatDescription, .ImageLoader, .ImageLoaderFactory, javax.imageio.ImageIO, .ImageReader, javax.imageio.stream.ImageInputStream, java.io.IOException, .InputStream, java.util.Iterator

Field Summary

Modifier and TypeField and Description
private static J2DImageLoaderFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ImageLoader
createImageLoader(InputStream
a stream containing an image in the supported format.
input
)

Implements com.sun.javafx.iio.ImageLoaderFactory.createImageLoader.

Creates a loader for the specified stream.

public ImageFormatDescription
getFormatDescription()

Implements com.sun.javafx.iio.ImageLoaderFactory.getFormatDescription.

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

public static synchronized J2DImageLoaderFactory
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

theInstanceback to summary
private static J2DImageLoaderFactory theInstance

Constructor Detail

J2DImageLoaderFactoryback to summary
private J2DImageLoaderFactory()

Method Detail

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

Implements com.sun.javafx.iio.ImageLoaderFactory.createImageLoader.

Doc from com.sun.javafx.iio.ImageLoaderFactory.createImageLoader.

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.

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

Implements com.sun.javafx.iio.ImageLoaderFactory.getFormatDescription.

Doc from com.sun.javafx.iio.ImageLoaderFactory.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.

Annotations
@Override
getInstanceback to summary
public static synchronized J2DImageLoaderFactory getInstance()