public class RandomAccessSDFReader extends RandomAccessReader
b, builder, chemObjectReader, currentRecord, headerOptions, index, indexCreated, indexVersion, logger, raFile, records
mode
Constructor and Description |
---|
RandomAccessSDFReader(File file,
IChemObjectBuilder builder) |
RandomAccessSDFReader(File file,
IChemObjectBuilder builder,
IReaderListener listener) |
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(Class<? extends IChemObject> classObject) |
ISimpleChemObjectReader |
createChemObjectReader() |
IResourceFormat |
getFormat() |
protected boolean |
isRecordEnd(String line) |
protected IChemObject |
processContent()
The reader is already set to read the record buffer.
|
void |
remove() |
void |
setReader(InputStream reader) |
void |
setReader(Reader reader) |
add, addChemObjectIOListener, close, finalize, first, getChemObjectReader, getCurrentRecord, getIndexFile, hasNext, hasPrevious, isIndexCreated, last, loadIndex, makeIndex, next, nextIndex, previous, previousIndex, readContent, readRecord, removeChemObjectIOListener, resize, saveIndex, set, setChemObjectReader, setIndexCreated, size, toString
fireIOSettingQuestion, getIOSettings, setReaderMode
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEachRemaining
public RandomAccessSDFReader(File file, IChemObjectBuilder builder) throws IOException
file
- builder
- IOException
public RandomAccessSDFReader(File file, IChemObjectBuilder builder, IReaderListener listener) throws IOException
IOException
public ISimpleChemObjectReader createChemObjectReader()
createChemObjectReader
in class RandomAccessReader
protected boolean isRecordEnd(String line)
isRecordEnd
in class RandomAccessReader
public IResourceFormat getFormat()
protected IChemObject processContent() throws CDKException
RandomAccessReader
processContent
in class RandomAccessReader
CDKException
- an error occurred whilst reading the filepublic void setReader(Reader reader) throws CDKException
CDKException
public void setReader(InputStream reader) throws CDKException
CDKException
public boolean accepts(Class<? extends IChemObject> classObject)
public void remove()
Copyright © 2018. All Rights Reserved.