javax.imageio.spi

Class ImageWriterSpi

public abstract class ImageWriterSpi extends ImageReaderWriterSpi

Field Summary
protected Class[]outputTypes
protected String[]readerSpiNames
static Class[]STANDARD_OUTPUT_TYPE
Constructor Summary
protected ImageWriterSpi()
ImageWriterSpi(String vendorName, String version, String[] names, String[] suffixes, String[] MIMETypes, String writerClassName, Class[] outputTypes, String[] readerSpiNames, boolean supportsStandardStreamMetadataFormat, String nativeStreamMetadataFormatName, String nativeStreamMetadataFormatClassName, String[] extraStreamMetadataFormatNames, String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, String nativeImageMetadataFormatName, String nativeImageMetadataFormatClassName, String[] extraImageMetadataFormatNames, String[] extraImageMetadataFormatClassNames)
Method Summary
abstract booleancanEncodeImage(ImageTypeSpecifier type)
booleancanEncodeImage(RenderedImage image)
ImageWritercreateWriterInstance()
abstract ImageWritercreateWriterInstance(Object extension)
String[]getImageReaderSpiNames()
Class[]getOutputTypes()
booleanisFormatLossless()
booleanisOwnWriter(ImageWriter writer)

Field Detail

outputTypes

protected Class[] outputTypes

readerSpiNames

protected String[] readerSpiNames

STANDARD_OUTPUT_TYPE

public static final Class[] STANDARD_OUTPUT_TYPE

Constructor Detail

ImageWriterSpi

protected ImageWriterSpi()

ImageWriterSpi

public ImageWriterSpi(String vendorName, String version, String[] names, String[] suffixes, String[] MIMETypes, String writerClassName, Class[] outputTypes, String[] readerSpiNames, boolean supportsStandardStreamMetadataFormat, String nativeStreamMetadataFormatName, String nativeStreamMetadataFormatClassName, String[] extraStreamMetadataFormatNames, String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat, String nativeImageMetadataFormatName, String nativeImageMetadataFormatClassName, String[] extraImageMetadataFormatNames, String[] extraImageMetadataFormatClassNames)

Method Detail

canEncodeImage

public abstract boolean canEncodeImage(ImageTypeSpecifier type)

canEncodeImage

public boolean canEncodeImage(RenderedImage image)

createWriterInstance

public ImageWriter createWriterInstance()

createWriterInstance

public abstract ImageWriter createWriterInstance(Object extension)

getImageReaderSpiNames

public String[] getImageReaderSpiNames()

getOutputTypes

public Class[] getOutputTypes()

isFormatLossless

public boolean isFormatLossless()

isOwnWriter

public boolean isOwnWriter(ImageWriter writer)