public class RawIteratingCSVReader extends org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader implements IRawReader<IStructureRecord>, ICiteable
CSVParser
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.csv.CSVFormat |
format |
protected Iterator<org.apache.commons.csv.CSVRecord> |
iterator |
protected boolean |
keeprawrecord |
protected MoleculeReader |
molReader |
String |
optionalInChIHeader |
String |
optionalInChIKeyHeader |
String |
optionalSMILESHeader |
protected org.apache.commons.csv.CSVParser |
parser |
protected ILiteratureEntry |
reference |
protected IStructureRecord |
structureRecord |
Constructor and Description |
---|
RawIteratingCSVReader(InputStream in,
org.apache.commons.csv.CSVFormat format) |
RawIteratingCSVReader(InputStream in,
DelimitedFileFormat format) |
RawIteratingCSVReader(Reader in) |
RawIteratingCSVReader(Reader in,
org.apache.commons.csv.CSVFormat format) |
RawIteratingCSVReader(Reader in,
DelimitedFileFormat format) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
org.openscience.cdk.io.formats.IResourceFormat |
getFormat() |
String |
getOptionalInChIHeader() |
String |
getOptionalInChIKeyHeader() |
String |
getOptionalSMILESHeader() |
ILiteratureEntry |
getReference() |
boolean |
hasNext() |
boolean |
isKeeprawrecord() |
Object |
next() |
IStructureRecord |
nextRecord() |
void |
setKeeprawrecord(boolean keeprawrecord) |
void |
setOptionalInChIHeader(String optionalInChIHeader) |
void |
setOptionalInChIKeyHeader(String optionalInChIKeyHeader) |
void |
setOptionalSMILESHeader(String optionalSMILESHeader) |
void |
setReader(InputStream in) |
void |
setReader(Reader reader) |
void |
setReference(ILiteratureEntry reference) |
protected IStructureRecord |
transform(org.apache.commons.csv.CSVRecord record) |
accepts, handleError, handleError, handleError, handleError, remove, setErrorHandler, setReaderMode
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handleError, handleError, handleError, handleError, setErrorHandler, setReaderMode
accepts, addChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
forEachRemaining, remove
protected org.apache.commons.csv.CSVParser parser
protected Iterator<org.apache.commons.csv.CSVRecord> iterator
protected IStructureRecord structureRecord
protected org.apache.commons.csv.CSVFormat format
protected ILiteratureEntry reference
protected MoleculeReader molReader
public String optionalSMILESHeader
public String optionalInChIKeyHeader
public String optionalInChIHeader
protected boolean keeprawrecord
public RawIteratingCSVReader(Reader in) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public RawIteratingCSVReader(InputStream in, DelimitedFileFormat format) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public RawIteratingCSVReader(Reader in, DelimitedFileFormat format) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public RawIteratingCSVReader(InputStream in, org.apache.commons.csv.CSVFormat format) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public RawIteratingCSVReader(Reader in, org.apache.commons.csv.CSVFormat format) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public boolean isKeeprawrecord()
public void setKeeprawrecord(boolean keeprawrecord)
public String getOptionalInChIKeyHeader()
public void setOptionalInChIKeyHeader(String optionalInChIKeyHeader)
public String getOptionalInChIHeader()
public void setOptionalInChIHeader(String optionalInChIHeader)
public String getOptionalSMILESHeader()
public void setOptionalSMILESHeader(String optionalSMILESHeader)
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 in) throws org.openscience.cdk.exception.CDKException
setReader
in interface org.openscience.cdk.io.IChemObjectReader
org.openscience.cdk.exception.CDKException
public org.openscience.cdk.io.formats.IResourceFormat getFormat()
getFormat
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 void setReference(ILiteratureEntry reference)
setReference
in interface ICiteable
public ILiteratureEntry getReference()
getReference
in interface ICiteable
public IStructureRecord nextRecord()
nextRecord
in interface IRawReader<IStructureRecord>
protected IStructureRecord transform(org.apache.commons.csv.CSVRecord record)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.