embedding fop

I am generating pdf using the  xslt processor.
Code goes like this.
          XMLReader parser = XMLReaderFactory.createXMLReader
("org.apache.xerces.parsers.SAXParser");

          Driver driver = new org.apache.fop.apps.Driver();
          parser.setContentHandler(driver.getContentHandler());
          driver.setXMLReader(parser);
          driver.setRenderer(Driver.RENDER_PDF);

            driver.addElementMapping
("org.apache.fop.fo.StandardElementMapping");
          driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
          driver.setOutputStream(out);

          driver.render(parser, new InputSource("c:\\temp.fo"));


it is perfectly generating pdf.
But i want to avoid giving the 'temp.fo'  file which is being generared by
the xsltresult of xslt processor.
Could anybody tell me , is there a way to generate the pdf without giving
the fo file, but the output stream or something else.
thanks.
seema

Received on Thursday, 20 June 2002 09:29:27 UTC