Hi!

Try using ByteArrayOutputStream and ByteArrayInputStream.
The ByteArrayOutputStream writes to a byte-array (like the 
name says :) and you can get it. The ByteArrayInputStream
can then read from that array.

Christian

-----Urspr�ngliche Nachricht-----
Von: Maneshi Tuli [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 15. November 2001 20:53
An: [EMAIL PROTECTED]
Betreff: fop generation



Hi ,
I want to generate fo into memory not into file system
currently i am doing like t his


    StreamSource xslSrc=   //read from string //
      StreamSource xmlSrc= //read from string //
      StringBuffer sb = new StringBuffer();

     I WANT TO DO THIS STEP INTO MEMORY like IN any INPUT STream
      StreamResult sr= new
StreamResult("C:\\XMLWork\\HTML\\InSight\\html\\english\\FullPage\\testBal.f
o");

      //StreamResult sr= new StreamResult(fopout);
      tb.realTransformer(xmlSrc, xslSrc, sr, m);
      System.out.print("done FO part");

       File inFile = new
File("C:\\XMLWork\\HTML\\InSight\\html\\english\\FullPage\\testBal.fo");
       Driver driver = new Driver(new InputSource(new FileInputStream
(inFile)),out);


     I WANT TO READ FO From Stream not from filesystem

 plz can u give me any idea which stream i can use
thanks

Maneshi Tuli
  212-454-1646 (O)
  732 -882-0353(H)



--

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to