On Wed, Jun 1, 2011 at 2:45 PM, Andrew Dalke <da...@dalkescientific.com> wrote:
> I'm really not a Java programmer. Should that be: > > IteratingMDLReader mdliter = new IteratingMDLReader(sdfile, > DefaultChemObjectBuilder.getInstance(); > > while (mdliter.hasNext()) { > ... > } Yes, this is correct > Also, what does CDK do if there's an error in one of the records? For > example, some of the other toolkits' readers skip bad records and report to > stderr. If CDK ignores bad records, is there a way to get the count of > records skipped? If CDK raises an exception, is there a way to ignore the > error and keep on processing? I think an exception will be thrown, which you could catch and decide what to do - but I'm not sure -- Rajarshi Guha NIH Chemical Genomics Center ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Cdk-user mailing list Cdk-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cdk-user