void ossimImageWriterFactory::getImageFileWritersByMimeType( ossimImageWriterFactoryBase::ImageFileWriterList& result, const ossimString& mimeType ) const { ossimString testExt = mimeType.downcase(); testExt = ossimString(testExt.begin()+6, testExt.end()); getImageFileWritersBySuffix(result, testExt); }
ossimImageFileWriter *ossimImageWriterFactoryRegistry::createWriterFromExtension(const ossimString& fileExtension)const { ossimImageFileWriter *writer = NULL; ossimImageWriterFactoryBase::ImageFileWriterList result; getImageFileWritersBySuffix(result, fileExtension); if(!result.empty()) { writer = result[0].release(); result.clear(); } return writer; }