Examples of RGroupQueryReader


Examples of org.openscience.cdk.io.RGroupQueryReader

          FormatFactory formatFactory = new FormatFactory(8192);
          IChemFormat format=formatFactory.guessFormat(input);
         
          if (format!=null) {
            if (format instanceof RGroupQueryFormat ) {
                  cor = new RGroupQueryReader();
              cor.setReader(input);
            }
            else if (format instanceof CMLFormat ) {
              cor = new CMLReader(urlString);
              cor.setReader(url.openStream());
View Full Code Here

Examples of org.openscience.cdk.io.RGroupQueryReader

        } catch (UnsupportedFlavorException e1) {
          e1.printStackTrace();
        } catch (IOException e1) {
          e1.printStackTrace();
              } catch (Exception e1) {
                  reader = new RGroupQueryReader(new StringReader(sb.toString()));
                }

            } else if (supported(transfer, DataFlavor.stringFlavor) ) {
                try {
                    content = (String) transfer.getTransferData(DataFlavor.stringFlavor);
View Full Code Here

Examples of org.openscience.cdk.io.RGroupQueryReader

      
      ISimpleChemObjectReader cor=null;
      IChemModel chemModel = null;

      if (mol.contains("$RGP")) {
        cor= new RGroupQueryReader(new StringReader(mol));
        chemModel=JChemPaint.getChemModelFromReader(cor, theJcpp);
      }
      else {
        cor= new MDLV2000Reader(new StringReader(mol), Mode.RELAXED);
        chemModel=JChemPaint.getChemModelFromReader(cor, theJcpp);
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.