Class RandomAccessReader

All Implemented Interfaces:
Iterator<IChemObject>, ListIterator<IChemObject>, IRandomAccessChemObjectReader<IChemObject>
Direct Known Subclasses:

public abstract class RandomAccessReader extends DefaultRandomAccessChemObjectReader implements IRandomAccessChemObjectReader<IChemObject>
Random access to text files of compounds. Reads the file as a text and builds an index file, if the index file doesn't already exist. The index stores offset, length and a third field reserved for future use. Subsequent access for a record N uses this index to seek the record and return the molecule. Useful for very big files.
Nina Jeliazkova <>
Source code:
Belongs to CDK module: