/** * Reads the content from a HIN input. It can only return a * IChemObject of type ChemFile * * @param object class must be of type ChemFile * * @see org.openscience.cdk.ChemFile */ @Override public <T extends IChemObject> T read(T object) throws CDKException { if (object instanceof IChemFile) { return (T) readChemFile((IChemFile) object); } else { throw new CDKException("Only supported is reading of ChemFile objects."); } }
/** * Reads the content from a HIN input. It can only return a * IChemObject of type ChemFile * * @param object class must be of type ChemFile * * @see org.openscience.cdk.ChemFile */ @Override public <T extends IChemObject> T read(T object) throws CDKException { if (object instanceof IChemFile) { return (T) readChemFile((IChemFile) object); } else { throw new CDKException("Only supported is reading of ChemFile objects."); } }