DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3472>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3472
java.lang.OutOfMemoryError while transforming XmlDocument
------- Additional Comments From [EMAIL PROTECTED] 2001-09-26 07:15 -------
Additional code snippet to emphasize the handling of Streamsource ...the
following code snippet gets invoked from 'applystyleSheet' method ..
private StreamSource createSource( XmlDocument xmlDoc ) {
StreamSource source = null;
StringWriter writer = null;
StringReader reader = null;
StringBuffer buffer = null;
try {
writer = new StringWriter( );
xmlDoc.write( writer );
buffer = writer.getBuffer( );
reader = new StringReader( buffer.toString( ));
source = new StreamSource( reader );
} catch (Exception exp ) {
exp.printStackTrace( );
} finally {
try {
writer.flush( );
writer.close( );
writer = null;
buffer = null;
} catch (Exception exp ) {
exp.printStackTrace( );
}
}
return source;
}
please do let me know if you have any further questions.
regards,
seetha