Hi Lochana,
You need to close the buffer before getting the output.
J
public static String toSDfileString(List<IAtomContainer> ms) throws
IOException, CDKException {
StringWriter sw = new StringWriter();
SDFWriter sdw = new SDFWriter(sw);
for (IAtomContainer m : ms){
sdw.write(ia);
}
sdw.close();
// String sdfString = sw.toString(); // needs to be after close
return sw.toString();
}
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Cdk-user mailing list
Cdk-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cdk-user