org.openscience.cdk.io
Interface IChemObjectReader

All Superinterfaces:
IChemObjectIO
All Known Subinterfaces:
IIteratingChemObjectReader, ISimpleChemObjectReader
All Known Implementing Classes:
CIFReader, CMLReader, CrystClustReader, CTXReader, DefaultChemObjectReader, DefaultIteratingChemObjectReader, GamessReader, Gaussian03Reader, Gaussian98Reader, GhemicalMMReader, HINReader, INChIPlainTextReader, INChIReader, IteratingMDLReader, IteratingPCCompoundASNReader, IteratingPCCompoundXMLReader, IteratingPCSubstancesXMLReader, IteratingSMILESReader, MDLReader, MDLRXNReader, MDLRXNV2000Reader, MDLRXNV3000Reader, MDLV2000Reader, MDLV3000Reader, Mol2Reader, PCCompoundASNReader, PCCompoundXMLReader, PCSubstanceXMLReader, PDBReader, PMPReader, ShelXReader, SMILESReader, VASPReader, XYZReader, ZMatrixReader

public interface IChemObjectReader
extends IChemObjectIO

This class is the interface that all IO readers should implement.

Author:
Egon Willighagen
Belongs to CDK module:
io
Source code:
HEAD

Nested Class Summary
static class IChemObjectReader.Mode
           
 
Method Summary
 void setReader(java.io.InputStream reader)
          Sets the InputStream from which this ChemObjectReader should read the contents.
 void setReader(java.io.Reader reader)
          Sets the Reader from which this ChemObjectReader should read the contents.
 void setReaderMode(IChemObjectReader.Mode mode)
          Sets the reader mode.
 
Methods inherited from interface org.openscience.cdk.io.IChemObjectIO
accepts, addChemObjectIOListener, close, getFormat, getIOSettings, removeChemObjectIOListener
 

Method Detail

setReader

void setReader(java.io.Reader reader)
               throws CDKException
Sets the Reader from which this ChemObjectReader should read the contents.

Throws:
CDKException

setReader

void setReader(java.io.InputStream reader)
               throws CDKException
Sets the InputStream from which this ChemObjectReader should read the contents.

Throws:
CDKException

setReaderMode

void setReaderMode(IChemObjectReader.Mode mode)
Sets the reader mode. If Mode.STRICT, then the reader will fail on any problem in the format of the read file, instead of trying to recover from that.

Parameters:
mode -