Search in sources :

Example 1 with MDLRXNReader

use of org.openscience.cdk.io.MDLRXNReader in project cdk by cdk.

the class ReactionManipulatorTest method setUp.

@Before
public void setUp() throws Exception {
    String filename1 = "reaction-1.rxn";
    InputStream ins1 = this.getClass().getResourceAsStream(filename1);
    MDLRXNReader reader1 = new MDLRXNReader(ins1);
    ReactionSet set = reader1.read(new ReactionSet());
    reaction = set.getReaction(0);
    reader1.close();
}
Also used : ReactionSet(org.openscience.cdk.ReactionSet) InputStream(java.io.InputStream) MDLRXNReader(org.openscience.cdk.io.MDLRXNReader) Before(org.junit.Before)

Example 2 with MDLRXNReader

use of org.openscience.cdk.io.MDLRXNReader in project cdk by cdk.

the class ReactionSetManipulatorTest method setUp.

@Before
public void setUp() throws Exception {
    builder = DefaultChemObjectBuilder.getInstance();
    String filename1 = "reaction-1.rxn";
    InputStream ins1 = this.getClass().getResourceAsStream(filename1);
    MDLRXNReader reader1 = new MDLRXNReader(ins1);
    set = reader1.read(new ReactionSet());
    reader1.close();
}
Also used : IReactionSet(org.openscience.cdk.interfaces.IReactionSet) ReactionSet(org.openscience.cdk.ReactionSet) InputStream(java.io.InputStream) MDLRXNReader(org.openscience.cdk.io.MDLRXNReader) Before(org.junit.Before)

Aggregations

InputStream (java.io.InputStream)2 Before (org.junit.Before)2 ReactionSet (org.openscience.cdk.ReactionSet)2 MDLRXNReader (org.openscience.cdk.io.MDLRXNReader)2 IReactionSet (org.openscience.cdk.interfaces.IReactionSet)1