public abstract class IteratingDelimitedFileReaderComplexHeader<COLUMN> extends IteratingFilesWithHeaderReader<COLUMN>
Modifier and Type | Field and Description |
---|---|
protected CASProcessor |
casTransformer |
protected String |
commentChar |
protected DelimitedFileFormat |
format |
protected Object[] |
values |
defaultSMILESHeader, header, inchiFactory, inchiIndex, logger, numberOfHeaderLines, optionalSMILESHeader, smilesIndex, sp, timeout
Constructor and Description |
---|
IteratingDelimitedFileReaderComplexHeader(InputStream in) |
IteratingDelimitedFileReaderComplexHeader(InputStream in,
DelimitedFileFormat format) |
IteratingDelimitedFileReaderComplexHeader(Reader in) |
IteratingDelimitedFileReaderComplexHeader(Reader in,
DelimitedFileFormat format) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected ArrayList<COLUMN> |
createHeader() |
protected abstract COLUMN |
createPropertyByColumnName(String name) |
void |
extractRowKeyAndData(String line)
Extract values from a line
|
String |
getCommentChar() |
org.openscience.cdk.io.formats.IResourceFormat |
getFormat() |
protected LiteratureEntry |
getReference() |
protected abstract String |
getSmilesHeader(int index) |
boolean |
hasNext() |
Object |
next() |
protected void |
processComment(String line) |
protected void |
processHeader(BufferedReader in) |
void |
remove() |
protected String |
removeStringDelimiters(String key) |
void |
setCommentChar(String commentChar) |
void |
setReader(InputStream in) |
void |
setReader(Reader reader) |
protected void |
skipLines(int numlines) |
String |
toString() |
addHeaderColumn, getHeaderColumn, getNumberOfColumns, getNumberOfHeaderLines, getOptionalSMILESHeader, getTimeout, isHeaderEmpty, setHeaderColumn, setNumberOfHeaderLines, setOptionalSMILESHeader, setTimeout, updateHeaderColumn
accepts, handleError, handleError, handleError, handleError, setErrorHandler, setReaderMode
addChemObjectIOListener, addSetting, addSettings, fireIOSettingQuestion, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addChemObjectIOListener, addSetting, addSettings, getIOSettings, getListeners, getSetting, getSetting, getSettings, hasSetting, removeChemObjectIOListener
forEachRemaining
protected String commentChar
protected DelimitedFileFormat format
protected Object[] values
protected CASProcessor casTransformer
public IteratingDelimitedFileReaderComplexHeader(Reader in) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public IteratingDelimitedFileReaderComplexHeader(Reader in, DelimitedFileFormat format) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public IteratingDelimitedFileReaderComplexHeader(InputStream in) throws UnsupportedEncodingException, org.openscience.cdk.exception.CDKException
UnsupportedEncodingException
org.openscience.cdk.exception.CDKException
public IteratingDelimitedFileReaderComplexHeader(InputStream in, DelimitedFileFormat format) throws UnsupportedEncodingException, org.openscience.cdk.exception.CDKException
UnsupportedEncodingException
org.openscience.cdk.exception.CDKException
public String getCommentChar()
public void setCommentChar(String commentChar)
public void setReader(InputStream in) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
public void setReader(Reader reader) throws org.openscience.cdk.exception.CDKException
org.openscience.cdk.exception.CDKException
protected LiteratureEntry getReference()
getReference
in class IteratingFilesWithHeaderReader<COLUMN>
public org.openscience.cdk.io.formats.IResourceFormat getFormat()
public boolean hasNext()
public Object next()
public void close() throws IOException
IOException
public void remove()
protected void processComment(String line)
protected void processHeader(BufferedReader in)
protected abstract String getSmilesHeader(int index)
public void extractRowKeyAndData(String line)
protected ArrayList<COLUMN> createHeader()
createHeader
in class IteratingFilesWithHeaderReader<COLUMN>
protected abstract COLUMN createPropertyByColumnName(String name)
createPropertyByColumnName
in class IteratingFilesWithHeaderReader<COLUMN>
protected void skipLines(int numlines) throws IOException
IOException
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.