class PubChemCompoundXMLFormat extends AbstractResourceFormat implements IChemFormatMatcher {

    @Override
    public MatchResult matches(List<String> lines) {
        MatchResult result = NO_MATCH;
        for (int i = 0; i < lines.size(); i++) {
            String line = lines.get(i);
            if (line.contains("<PC-Compound") && result == NO_MATCH) result = new MatchResult(true, this, i);
            if (line.contains("<PC-Compounds")) return NO_MATCH;
        }
        return result;
    }

    public  PubChemCompoundXMLFormat();

}