class WorldFireReaderPlugIn implements ProductReaderPlugIn {

    @Override
    public DecodeQualification getDecodeQualification(Object input) {
        File inputFile = new File(String.valueOf(input));
        if(!inputFile.getName().toUpperCase().endsWith(FIRE_FILE_EXTENSION)) {
            return DecodeQualification.UNABLE;
        }

        InputStream inputStream = null;
        try {
            inputStream = new FileInputStream(inputFile);
            return getDecodeQualification(inputStream);
        } catch (IOException ignored) {
            return DecodeQualification.UNABLE;
        }finally {
            if(inputStream != null) {
                try {
                    inputStream.close();
                } catch (IOException ignored) {}
            }
        }
    }

}