}
private void dumpSerializedEngine(IMarkupWriter responseWriter)
{
CharArrayWriter writer = null;
BinaryDumpOutputStream bos = null;
try
{
// Because IReponseWriter doesn't implement the
// java.io.Writer interface, we have to buffer this
// stuff then pack it in all at once. Kind of a waste!
writer = new CharArrayWriter();
bos = new BinaryDumpOutputStream(writer);
bos.setBytesPerLine(32);
bos.write(getSerializedEngine());
bos.close();
responseWriter.print(writer.toString());
}
catch (IOException ex)
{
// Ignore.
}
finally
{
if (bos != null)
{
try
{
bos.close();
}
catch (IOException ex)
{
// Ignore.
}