public class IteratingFileReader extends Object implements org.openscience.cdk.io.iterator.IIteratingChemObjectReader
Modifier and Type | Field and Description |
---|---|
protected String |
filename |
protected org.openscience.cdk.io.iterator.IIteratingChemObjectReader |
reader |
Constructor and Description |
---|
IteratingFileReader(File file) |
IteratingFileReader(File file,
org.openscience.cdk.io.formats.IChemFormat format) |
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() |
org.openscience.cdk.io.formats.IResourceFormat |
getFormat() |
org.openscience.cdk.io.setting.IOSetting[] |
getIOSettings() |
Collection<org.openscience.cdk.io.listener.IChemObjectIOListener> |
getListeners() |
<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() |
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) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
protected org.openscience.cdk.io.iterator.IIteratingChemObjectReader reader
protected String filename
public IteratingFileReader(File file) throws AmbitIOException
AmbitIOException
public IteratingFileReader(File file, org.openscience.cdk.io.formats.IChemFormat format) throws AmbitIOException
AmbitIOException
public boolean accepts(Class arg0)
accepts
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.setting.IOSetting[] getIOSettings()
getIOSettings
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 removeChemObjectIOListener(org.openscience.cdk.io.listener.IChemObjectIOListener arg0)
removeChemObjectIOListener
in interface org.openscience.cdk.io.IChemObjectIO
public org.openscience.cdk.io.formats.IResourceFormat getFormat()
getFormat
in interface org.openscience.cdk.io.IChemObjectIO
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 void setReader(Reader reader) throws org.openscience.cdk.exception.CDKException
setReader
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
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 setReaderMode(org.openscience.cdk.io.IChemObjectReader.Mode mode)
setReaderMode
in interface org.openscience.cdk.io.IChemObjectReader
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.