/* * ImageI/O-Ext - OpenSource Java Image translation Library * http://www.geo-solutions.it/ * http://java.net/projects/imageio-ext/ * (C) 2007 - 2009, GeoSolutions * * 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 3 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. */ package it.geosolutions.imageio.matfile5.sas; import it.geosolutions.imageio.matfile5.MatFileImageReaderSpi; import it.geosolutions.imageio.stream.input.FileImageInputStreamExtImpl; import java.io.File; import java.io.IOException; import javax.imageio.ImageReader; /** * * @author Daniele Romagnoli, GeoSolutions SAS * */ public class SASTileImageReaderSpi extends MatFileImageReaderSpi { static final String[] suffixes = { "mat" }; static final String[] formatNames = { "Mat", "Mat5" }; // TODO: Improve this static final String[] MIMETypes = { "image/mat" }; static final String version = "1.0"; static final String readerCN = "it.geosolutions.imageio.matfile5.sas.SASTileImageReader"; static final String vendorName = "GeoSolutions"; // writerSpiNames static final String[] wSN = { null }; // StreamMetadataFormatNames and StreamMetadataFormatClassNames static final boolean supportsStandardStreamMetadataFormat = false; static final String nativeStreamMetadataFormatName = null; static final String nativeStreamMetadataFormatClassName = null; static final String[] extraStreamMetadataFormatNames = { null }; static final String[] extraStreamMetadataFormatClassNames = { null }; // ImageMetadataFormatNames and ImageMetadataFormatClassNames static final boolean supportsStandardImageMetadataFormat = false; static final String nativeImageMetadataFormatName = ""; static final String nativeImageMetadataFormatClassName = ""; static final String[] extraImageMetadataFormatNames = { null }; static final String[] extraImageMetadataFormatClassNames = { null }; public SASTileImageReaderSpi() { super( vendorName, version, formatNames, suffixes, MIMETypes, readerCN, // readerClassName new Class[] { File.class, FileImageInputStreamExtImpl.class }, wSN, // writer Spi Names supportsStandardStreamMetadataFormat, nativeStreamMetadataFormatName, nativeStreamMetadataFormatClassName, extraStreamMetadataFormatNames, extraStreamMetadataFormatClassNames, supportsStandardImageMetadataFormat, nativeImageMetadataFormatName, nativeImageMetadataFormatClassName, extraImageMetadataFormatNames, extraImageMetadataFormatClassNames); } @Override public ImageReader createReaderInstance(Object extension) throws IOException { return new SASTileImageReader(this); } }