Logo Search packages:      
Sourcecode: cdk version File versions  Download package

boolean org::openscience::cdk::io::CMLReader::accepts ( Class  classObject  )  [inline]

Returns whether the given IChemObject can be read or not.

Implements org::openscience::cdk::io::IChemObjectIO.

Definition at line 180 of file CMLReader.java.

                                                {
            Class[] interfaces = classObject.getInterfaces();
            for (int i=0; i<interfaces.length; i++) {
                  if (IChemFile.class.equals(interfaces[i])) return true;
            }
            
            if (IChemFile.class.equals(classObject))
                  return true;
            return false;
      }


Generated by  Doxygen 1.6.0   Back to index