code: @Override
      public <T extends IChemObject> T read(T object) throws CDKException {
          if (object instanceof IChemFile) {
              IChemFile cf = (IChemFile) object;
              try {
                  cf = readChemFile(cf);
              } catch (IOException e) {
                  logger.error("Input/Output error while reading from input.");
              }
              return (T) cf;
          } else {
              throw new CDKException("Only supported is reading of ChemFile.");
          }
      }
docs: Read a ChemFile from input.
  
  @return the content in a ChemFile object