com.alkacon.simapi.util.GifImageWriterSpi Maven / Gradle / Ivy
/*
* File : $Source: /alkacon/cvs/AlkaconSimapi/src/com/alkacon/simapi/util/GifImageWriterSpi.java,v $
* Date : $Date: 2007/11/20 15:59:13 $
* Version: $Revision: 1.2 $
*
* Copyright (c) 2007 Alkacon Software GmbH (http://www.alkacon.com)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* For further information about Alkacon Software GmbH, please see the
* company website: http://www.alkacon.com
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package com.alkacon.simapi.util;
import java.util.Locale;
import javax.imageio.ImageTypeSpecifier;
import javax.imageio.ImageWriter;
import javax.imageio.spi.ImageWriterSpi;
/**
* Image writer SPI description for Java ImageIO libary.
*
* @author Alexander Kandzior
*/
public class GifImageWriterSpi extends ImageWriterSpi {
/**
* Public constructor, provides the Gif image writer description.
*/
public GifImageWriterSpi() {
super(
"Alkacon Simple Image API (Simapi), http://www.alkacon.com/",
"1.0",
new String[] {"gif", "GIF"},
new String[] {"gif", "GIF"},
new String[] {"image/gif", "image/x-gif"},
GifImageWriter.class.getName(),
STANDARD_OUTPUT_TYPE,
null,
false,
null,
null,
null,
null,
false,
null,
null,
null,
null);
}
/**
* @see javax.imageio.spi.ImageWriterSpi#canEncodeImage(javax.imageio.ImageTypeSpecifier)
*/
public boolean canEncodeImage(ImageTypeSpecifier type) {
return true;
}
/**
* @see javax.imageio.spi.ImageWriterSpi#createWriterInstance(java.lang.Object)
*/
public ImageWriter createWriterInstance(Object extension) {
return new GifImageWriter(this);
}
/**
* @see javax.imageio.spi.IIOServiceProvider#getDescription(java.util.Locale)
*/
public String getDescription(Locale locale) {
return "Graphics Interchange Format";
}
}