im using jdom to construct an xml document. once im done building it i need to output the stream and pipe it to an input stream...right now it just hangs my server....any help would be greatly appreciated..
org.jdom.output.XMLOutputter xmlOut = new org.jdom.output.XMLOutputter();
//import it into domino ahhh yeahh....
PipedOutputStream ps = null;
PipedInputStream is = null;
try {
ps = new PipedOutputStream();
is = new PipedInputStream(ps);
//output the xml
doc to the
pipedoutputstream
xmlOut.output(transformedDoc,ps);
//import xml into domino
dxlIn.importDXL(is);
//flush and close
ps.flush();
is.close();
ps.close();
} catch (DXLException ex) {
System.out.println(ex.toString());
}
what am i doing wrong?
thanks!
Brian