Z
zamba
hi..im using this piece of code in a class wich is thread type :
//Se llama al ejecutable de formatter//
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(_strFormatter + " "+ full_xml_file + " " +
_strXSLFile + " " + full_pdf_file);
InputStream stderr = proc.getErrorStream();
InputStreamReader isr = new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
System.out.println("");
while ( (line = br.readLine()) != null)
System.out.println(line);
System.out.println("");
int exitVal = proc.waitFor();
this is because i need to call an external program from my class to
convert xml to pdf , im doing this with a class which make run of this
thread class and first one is called about 30.000 times (one for each
xml), but the process is too slow...i suppouse that proc.waitFor and
while...etc..can do my process slow, but i didn't find another wy to
call an external program and test if worked...can anybody help me...tks
//Se llama al ejecutable de formatter//
Runtime rt = Runtime.getRuntime();
Process proc = rt.exec(_strFormatter + " "+ full_xml_file + " " +
_strXSLFile + " " + full_pdf_file);
InputStream stderr = proc.getErrorStream();
InputStreamReader isr = new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
System.out.println("");
while ( (line = br.readLine()) != null)
System.out.println(line);
System.out.println("");
int exitVal = proc.waitFor();
this is because i need to call an external program from my class to
convert xml to pdf , im doing this with a class which make run of this
thread class and first one is called about 30.000 times (one for each
xml), but the process is too slow...i suppouse that proc.waitFor and
while...etc..can do my process slow, but i didn't find another wy to
call an external program and test if worked...can anybody help me...tks