IteratingSMILESReader extends DefaultIteratingChemObjectReader<IAtomContainer> { @Override public IResourceFormat getFormat() { return SMILESFormat.getInstance(); } IteratingSMILESReader(Reader in, IChemObjectBuilder builder);  IteratingSMILESReader(InputStream in, IChemObjectBuilder builder); @Override IResourceFormat getFormat(); @Override boolean hasNext(); @Override IAtomContainer next(); @Override void close(); @Override void remove(); @Override void setReader(Reader reader); @Override void setReader(InputStream reader); static final String BAD_SMILES_INPUT; }
@Test public void testGetFormat() { String filename = "data/smiles/test2.smi"; logger.info("Testing: " + filename); InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename); IteratingSMILESReader reader = new IteratingSMILESReader(ins, DefaultChemObjectBuilder.getInstance()); IResourceFormat format = reader.getFormat(); assertTrue(format instanceof SMILESFormat); }