|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.descriptors.MDReader
chemaxon.descriptors.MDArrayReader
public class MDArrayReader
Reads MolecularDescriptors from an array. Intended for use when chemical descriptors are read more than once.
Typical usage:
MDArrayReader r = new MDArrayReader( sampleDescriptorSet, cdFileReader );
After that all methods of MDReaders can be called, the number of MDSets is known, reading is fast, and can be reset without problems.
| Field Summary |
|---|
| Fields inherited from class chemaxon.descriptors.MDReader |
|---|
cloneResult, firstId, generateDescriptor, generateId, id, idTagName, lastReadMolecule, mdSet, takeTags |
| Constructor Summary | |
|---|---|
MDArrayReader(MDReader reader)
Constructor from another MDReader. |
|
MDArrayReader(MDSet[] elements)
Constructor from standard array (to ease use of methods requiring MDReader input). |
|
| Method Summary | |
|---|---|
void |
close()
Closes the reader |
MDSet |
next()
Gets the next element from reader. |
void |
reset()
Resets the reader to beginning |
int |
size()
Gets number of MDSets in the reader |
| Methods inherited from class chemaxon.descriptors.MDReader |
|---|
createMDSetComponent, getCloneResult, getMDSet, getMolecule, setCloneResult, setFirstId, setGenerateId, setIdTagName, setTakeTag |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MDArrayReader(MDSet[] elements)
elements - Array of MDSets to be put into the reader.
public MDArrayReader(MDReader reader)
throws MDReaderException
reader - MDReader to be copied into an array reader.
MDReaderException| Method Detail |
|---|
public void reset()
throws MDReaderException
reset in class MDReaderMDReaderException - when failed to reset the reader
public MDSet next()
throws MDReaderException
next in class MDReaderMDReaderException - when failed reading the next descriptor setpublic int size()
public void close()
throws MDReaderException
close in class MDReaderMDReaderException - when failed to close the input stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||