PubChemCompoundsXMLFormat extends SimpleChemFormatMatcher implements IChemFormatMatcher { @Override public boolean matches(int lineNumber, String line) { if (line.contains("<PC-Compounds")) return true; return false; } PubChemCompoundsXMLFormat(); static IResourceFormat getInstance(); @Override String getFormatName(); @Override String getMIMEType(); @Override String getPreferredNameExtension(); @Override String[] getNameExtensions(); @Override String getReaderClassName(); @Override String getWriterClassName(); @Override boolean isXMLBased(); @Override int getSupportedDataFeatures(); @Override int getRequiredDataFeatures(); @Override boolean matches(int lineNumber, String line);  }
@Test @Override public void testMatches() throws Exception { String header = "<?xml version=\"\"?><PC-Compounds/>"; Assert.assertTrue(matches(header)); }