public class RawIteratingWrapper<R extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader> extends Object implements IRawReader<IStructureRecord>, ICiteable
Modifier and Type | Field and Description |
---|---|
protected IStructureRecord |
r |
protected R |
reader |
protected ILiteratureEntry |
reference |
protected MoleculeWriter |
writer |
Constructor and Description |
---|
RawIteratingWrapper(R reader) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Class arg0) |
void |
addChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0) |
<S extends org.openscience.cdk.io.setting.IOSetting> |
addSetting(org.openscience.cdk.io.setting.IOSetting setting) |
void |
addSettings(Collection<org.openscience.cdk.io.setting.IOSetting> settings) |
void |
close() |
protected IStructureRecord |
createStructureRecord() |
org.openscience.cdk.io.formats.IResourceFormat |
getFormat() |
org.openscience.cdk.io.setting.IOSetting[] |
getIOSettings() |
Collection<org.openscience.cdk.io.listener.IChemObjectIOListener> |
getListeners() |
ILiteratureEntry |
getReference() |
<S extends org.openscience.cdk.io.setting.IOSetting> |
getSetting(String name) |
<S extends org.openscience.cdk.io.setting.IOSetting> |
getSetting(String name,
Class<S> c) |
Collection<org.openscience.cdk.io.setting.IOSetting> |
getSettings() |
void |
handleError(String message) |
void |
handleError(String message,
Exception exception) |
void |
handleError(String message,
int row,
int colStart,
int colEnd) |
void |
handleError(String message,
int row,
int colStart,
int colEnd,
Exception exception) |
boolean |
hasNext() |
boolean |
hasSetting(String name) |
Object |
next() |
IStructureRecord |
nextRecord() |
void |
remove() |
void |
removeChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0) |
void |
setErrorHandler(org.openscience.cdk.io.IChemObjectReaderErrorHandler handler) |
void |
setReader(InputStream reader) |
void |
setReader(Reader reader) |
void |
setReaderMode(org.openscience.cdk.io.IChemObjectReader.Mode mode) |
void |
setReference(ILiteratureEntry reference) |
protected Object |
transform(Object o) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected R extends org.openscience.cdk.io.iterator.IIteratingChemObjectReader reader
protected MoleculeWriter writer
protected ILiteratureEntry reference
protected IStructureRecord r
public RawIteratingWrapper(R reader)
protected IStructureRecord createStructureRecord()
public ILiteratureEntry getReference()
getReference
in interface ICiteable
public void setReference(ILiteratureEntry reference)
setReference
in interface ICiteable
public void setReader(InputStream reader) throws org.openscience.cdk.exception.CDKException
setReader
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void setReader(Reader reader) throws org.openscience.cdk.exception.CDKException
setReader
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public IStructureRecord nextRecord()
nextRecord
in interface IRawReader<IStructureRecord>
public boolean accepts(Class arg0)
accepts
in interface org.openscience.cdk.io.IChemObjectIO
public void addChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0)
addChemObjectIOListener
in interface org.openscience.cdk.io.IChemObjectIO
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface org.openscience.cdk.io.IChemObjectIO
IOException
public org.openscience.cdk.io.formats.IResourceFormat getFormat()
getFormat
in interface org.openscience.cdk.io.IChemObjectIO
public org.openscience.cdk.io.setting.IOSetting[] getIOSettings()
getIOSettings
in interface org.openscience.cdk.io.IChemObjectIO
public void removeChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0)
removeChemObjectIOListener
in interface org.openscience.cdk.io.IChemObjectIO
public void setReaderMode(org.openscience.cdk.io.IChemObjectReader.Mode mode)
setReaderMode
in interface org.openscience.cdk.io.IChemObjectReader
public void setErrorHandler(org.openscience.cdk.io.IChemObjectReaderErrorHandler handler)
setErrorHandler
in interface org.openscience.cdk.io.IChemObjectReader
public void handleError(String message) throws org.openscience.cdk.exception.CDKException
handleError
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void handleError(String message, Exception exception) throws org.openscience.cdk.exception.CDKException
handleError
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void handleError(String message, int row, int colStart, int colEnd) throws org.openscience.cdk.exception.CDKException
handleError
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public void handleError(String message, int row, int colStart, int colEnd, Exception exception) throws org.openscience.cdk.exception.CDKException
handleError
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public Collection<org.openscience.cdk.io.listener.IChemObjectIOListener> getListeners()
getListeners
in interface org.openscience.cdk.io.IChemObjectIO
public <S extends org.openscience.cdk.io.setting.IOSetting> S addSetting(org.openscience.cdk.io.setting.IOSetting setting)
addSetting
in interface org.openscience.cdk.io.IChemObjectIO
public void addSettings(Collection<org.openscience.cdk.io.setting.IOSetting> settings)
addSettings
in interface org.openscience.cdk.io.IChemObjectIO
public boolean hasSetting(String name)
hasSetting
in interface org.openscience.cdk.io.IChemObjectIO
public <S extends org.openscience.cdk.io.setting.IOSetting> S getSetting(String name)
getSetting
in interface org.openscience.cdk.io.IChemObjectIO
public <S extends org.openscience.cdk.io.setting.IOSetting> S getSetting(String name, Class<S> c)
getSetting
in interface org.openscience.cdk.io.IChemObjectIO
public Collection<org.openscience.cdk.io.setting.IOSetting> getSettings()
getSettings
in interface org.openscience.cdk.io.IChemObjectIO
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.