The output from extending the AbstractReaderWriterPipe has a missing cml:list ending tag. Wellformness broken. I tested with the examples under src/resources.
Ah! Found if I just call the close on the impl it in turn calls the joelib2.io.types.ChemicalMarkupLanguage.closeWriter. Changed the code to
[code]
AddMolID addMolID = null;
try
{
addMolID = new AddMolID(args);
addMolID.loadWriteAllMolecules();
addMolID.close();
}
catch (IOException e)
{
e.printStackTrace();
System.exit(1);
}
[/code]and then it worked
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=383601
Originator: YES
the joelib2.io.types.ChemicalMarkupLanguage.closeWriter is never called
Logged In: YES
user_id=383601
Originator: YES
Ah! Found if I just call the close on the impl it in turn calls the joelib2.io.types.ChemicalMarkupLanguage.closeWriter. Changed the code to
[code]
AddMolID addMolID = null;
try
{
addMolID = new AddMolID(args);
addMolID.loadWriteAllMolecules();
addMolID.close();
}
catch (IOException e)
{
e.printStackTrace();
System.exit(1);
}
[/code]and then it worked