Package org.openscience.cdk.io

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


        } 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

      
      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

Related Classes of org.openscience.cdk.io.RGroupQueryReader

Copyright © 2018 www.massapicom. 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.