User c8c126404b
27-05-2009 08:35:48
Hi,
In the past (Marvin 3.x) I have extended the MolImport class to the some pre-processing. The code I had was something like this:
package chemaxon.marvin.modules;
import chemaxon.formats.MolInputStream;
import chemaxon.struc.Molecule;
public class XXXMolImport extends MolImport {
public void initMolImport(MolInputStream mis, String opts) throws IOException {
mis.getFilePointer();
String x = mis.readLine();
// some code here
MolInputStream cmis = new MolInputStream(s);
super.initMolImport(cmis, opts);
}
public boolean readMol(Molecule mol) throws IOException {
return super.readMol(mol);
}
public boolean skipToNext() {
return false;
}
}
now I want to modify this code to run under marvin 5.x. Things have changed... Is the follwing correct:
package chemaxon.marvin.modules;
import chemaxon.formats.MolInputStream;
import chemaxon.marvin.io.formats.mdl.MolImport;
public class XXXMolImport extends MolImport {
public void initMolImport(MolInputStream mis) throws IOException {
mis.getFilePointer();
String x = mis.readLine();
// some code here
super.initMolImport(cmis);
}
}
Where should I place my class file? in chemaxon.marvin.modules or in chemaxon.marvin.io.formats.mdl? How to make my new format "xxxMol" visible? Any issues with the digital signatures? In the past I had to unzip all your jars and sign them with my signature.
Any help will be much appreciated.
Regards,
Plamen