You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Thangadurai <du...@siptech.co.in> on 2003/01/23 10:13:52 UTC

OutputStream or Writer inside StreamResult always get flushed by Transformer.transform()

Hi All,

This is regarding the flushing issue specified in the bug# 1083 [ http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1083 ]

I guess it has not been resolved for a long time, While debugging this issue, I had the following questions. it would be very helpful If any of you clarify this, 

- The member 'm_shouldFlag' of the SerializerToXML decides whether the underlying OutputStream/Writer to be flushed or not at the end of the document. But the way in which the member[m_shouldFlag] initialized is arguable. 

- What is the deciding criteria to be used for flushing the uderlying steam/writer? 

- Should the proposed fix provide the facility for the xalan-user to specify the value for the member 'm_shouldFlush'? 

    If it shouldn't, then the requirenment of the member 'm_shouldFlush' is arguable. Because the required functionality [either flushing or not flushing] can be implemented in the SerializerToXML without the member[m_shouldFlush] and it can be documented.

Thanks,
Thangadurai
SIP Technologies & Exports Ltd.