Examples of MDLV2000Writer


Examples of org.openscience.cdk.io.MDLV2000Writer

        public JcpSelection(IAtomContainer tocopy1) {
            IAtomContainer tocopy= tocopy1.getBuilder().newInstance(IAtomContainer.class,tocopy1);
            // MDL mol output
            StringWriter sw = new StringWriter();
            try {
        new MDLV2000Writer(sw).writeMolecule(tocopy);
      } catch (Exception e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
            this.mol=sw.toString();
View Full Code Here

Examples of org.openscience.cdk.io.MDLV2000Writer

          }

          cow.write(rGroupQuery);
        }
        else {
          cow = new MDLV2000Writer(new FileWriter(outFile));
            cow.write(model);
        }
         
        cow.close();
View Full Code Here

Examples of org.openscience.cdk.io.MDLV2000Writer

      if (theJcpp.get2DHub().getRGroupHandler()!=null) {
        RGroupQueryWriter rgw = new RGroupQueryWriter (sw);
        rgw.write(theJcpp.get2DHub().getRGroupHandler().getrGroupQuery());
      }
      else {
            MDLV2000Writer mdlwriter = new MDLV2000Writer(sw);
            mdlwriter.write(som);
      }
        return (sw.toString());
    }
View Full Code Here

Examples of org.openscience.cdk.io.MDLV2000Writer

        String tmpPrbFile = workingDir + tmpFileBase + PROBFILE_EXTENSION;
       
        try {

            StringWriter writer = new StringWriter();
            MDLV2000Writer mdlWriter = new MDLV2000Writer(writer);
           
            mdlWriter.write(atc);
            String mdl = writer.toString();
           
            //Write the Molfile String into a file for the generator to work on. 
            FileWriter fstream = new FileWriter(tmpMolFile);
            BufferedWriter out = new BufferedWriter(fstream);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.