|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader
org.openscience.cdk.io.iterator.IteratingPCSubstancesXMLReader
public class IteratingPCSubstancesXMLReader
Iterating PubChem PC-Substances ASN.1 XML reader.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.openscience.cdk.io.IChemObjectReader |
|---|
IChemObjectReader.Mode |
| Constructor Summary | |
|---|---|
IteratingPCSubstancesXMLReader(InputStream in,
IChemObjectBuilder builder)
Constructs a new IteratingPCSubstancesXMLReader that can read Molecule from a given InputStream and IChemObjectBuilder. |
|
IteratingPCSubstancesXMLReader(Reader in,
IChemObjectBuilder builder)
Constructs a new IteratingPCSubstancesXMLReader that can read Molecule from a given Reader and IChemObjectBuilder. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this IChemObjectIO's resources. |
IResourceFormat |
getFormat()
Returns the IResourceFormat class for this IO class. |
boolean |
hasNext()
|
IChemObject |
next()
|
void |
remove()
File IO generally does not support removing of entries. |
void |
setReader(InputStream reader)
Sets the InputStream from which this ChemObjectReader should read the contents. |
void |
setReader(Reader reader)
Sets the Reader from which this ChemObjectReader should read the contents. |
| Methods inherited from class org.openscience.cdk.io.iterator.DefaultIteratingChemObjectReader |
|---|
accepts, addChemObjectIOListener, getIOSettings, handleError, handleError, handleError, handleError, removeChemObjectIOListener, setErrorHandler, setReaderMode |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IteratingPCSubstancesXMLReader(Reader in,
IChemObjectBuilder builder)
throws IOException,
org.xmlpull.v1.XmlPullParserException
in - The input streambuilder - The builder
IOException - if there is error in getting the IsotopeFactory
org.xmlpull.v1.XmlPullParserException - if there is an error isn setting up the XML parser
public IteratingPCSubstancesXMLReader(InputStream in,
IChemObjectBuilder builder)
throws Exception
in - The input streambuilder - The builder. In general, use DefaultChemObjectBuilder
Exception - if there is a problem creating an InputStreamReader| Method Detail |
|---|
@TestMethod(value="testGetFormat") public IResourceFormat getFormat()
IChemObjectIOIResourceFormat class for this IO class.
public boolean hasNext()
public IChemObject next()
@TestMethod(value="testClose")
public void close()
throws IOException
IChemObjectIO
IOExceptionpublic void remove()
DefaultIteratingChemObjectReader
remove in interface Iteratorremove in class DefaultIteratingChemObjectReader
@TestMethod(value="testSetReader_Reader")
public void setReader(Reader reader)
throws CDKException
IChemObjectReader
CDKException
@TestMethod(value="testSetReader_InputStream")
public void setReader(InputStream reader)
throws CDKException
IChemObjectReader
CDKException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||