Addition of flush() method into the IXMLWriter
----------------------------------------------

         Key: JIBX-56
         URL: http://jira.codehaus.org/browse/JIBX-56
     Project: JiBX
        Type: Improvement
  Components: core  
    Versions: CVS    
    Reporter: Chris Chen
    Priority: Trivial


Currently, IXMLWriter implementations store the marshalled xml data in a 
buffer.  When marshalling is done, the close() is called to flush the xml data 
to the stream as well as close the stream.

This method does not work well with streaming XML where I would like to stream 
out XML data stanza by stanza.  In this particular case, I do not want the 
stream to be closed, but I would like to flush the data out to the stream so 
that the remote server can process the data and send reply data back.  

Currently, I have made modifications to the source tree and added the flush() 
method into the StreamWriterBase class.  However, I think this ability is 
useful in many contexts and can possibly be extended to IXMLWriter interface.

I know there's a feature freeze already.  Whether it gets into this upcoming 
release or the next, I think the addition will not cause any problems at all.  
It is a simplified version of the close() method without the closing of the 
stream and some other data resets.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to