User c226609425
15-05-2006 14:30:43
Hi ChemAxon team,
First, when I use the "exporter" to export compounds from my "jChem table", an error occured only with this function, as if this last one does not exist.
/var/servers/programs/jakarta-tomcat4.1.31/work/Standalone/localhost/hGPCRLig/jsp/transfer/transferChemaxonLigands_jsp.java:365: cannot find symbol
symbol : method setOuputFieldNames(java.lang.String)
location: class chemaxon.jchem.db.Exporter
exporter.setOuputFieldNames( "ID MW PSA HBA HBD RINGS ROTBONDS NAME" );
However, I don't have any error with the other functions.
In a second time, I would like especially to add some information in a stream.
For example, people download compounds from the JChemTable in a SD format (PSA, MOLWEIGHT, etc ...), but in this stream, I would like to add a field such as "receptors of this coumpounds" and add all this receptors but these are not presents in this table and arise from another location (files or calculation, etc ...).
Consequently, to answer to this kind of problem, I tried :
outs is my OuputStream (JspWriter).
endOfLine is my type of end of line such as \r, \r\n, \n.
But when I write this code, the lines can be inserted anywhere in the stream ( i.e : in the connection table ).
Best regards
Biolbo
First, when I use the "exporter" to export compounds from my "jChem table", an error occured only with this function, as if this last one does not exist.
/var/servers/programs/jakarta-tomcat4.1.31/work/Standalone/localhost/hGPCRLig/jsp/transfer/transferChemaxonLigands_jsp.java:365: cannot find symbol
symbol : method setOuputFieldNames(java.lang.String)
location: class chemaxon.jchem.db.Exporter
exporter.setOuputFieldNames( "ID MW PSA HBA HBD RINGS ROTBONDS NAME" );
However, I don't have any error with the other functions.
In a second time, I would like especially to add some information in a stream.
For example, people download compounds from the JChemTable in a SD format (PSA, MOLWEIGHT, etc ...), but in this stream, I would like to add a field such as "receptors of this coumpounds" and add all this receptors but these are not presents in this table and arise from another location (files or calculation, etc ...).
Consequently, to answer to this kind of problem, I tried :
outs is my OuputStream (JspWriter).
endOfLine is my type of end of line such as \r, \r\n, \n.
Code: |
Exporter exporter = new Exporter(); Exporter.setOutputStream( outs ); //exporter.set ... while ( exporter.writeNext() ){ //Some information added here like outs.flush(); outs.write( ("lines to add"+endOfLine).getBytes() ); outs.flush(); } |
But when I write this code, the lines can be inserted anywhere in the stream ( i.e : in the connection table ).
Best regards
Biolbo