public class CIFReader extends DefaultChemObjectReader
The CIF example on the IUCR website has been tested, as well as Crambin (1CRN) in the PDB database.
IChemObjectReader.ModeerrorHandler, mode| Constructor and Description |
|---|
CIFReader() |
CIFReader(InputStream input) |
CIFReader(Reader input)
Create an CIF like file reader.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<? extends IChemObject> testClass) |
void |
close() |
IResourceFormat |
getFormat() |
<T extends IChemObject> |
read(T object)
Read a ChemFile from input.
|
void |
setReader(InputStream input) |
void |
setReader(Reader reader) |
fireFrameRead, handleError, handleError, handleError, handleError, setErrorHandler, setReaderModeaddChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListenerpublic CIFReader(Reader input)
input - source of CIF datapublic CIFReader(InputStream input)
public CIFReader()
public IResourceFormat getFormat()
public void setReader(Reader reader) throws CDKException
CDKExceptionpublic void setReader(InputStream input) throws CDKException
CDKExceptionpublic boolean accepts(Class<? extends IChemObject> testClass)
public <T extends IChemObject> T read(T object) throws CDKException
CDKExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2017. All rights reserved.