if (stringTablePending) {
writeStringTable();
out.write(((ByteArrayOutputStream)body).toByteArray());
}
} catch (IOException e) {
throw new WBSAXException(
exceptionLocalizer.format("wbsax-document-close-error"),
e);
} finally {
try {
out.flush();
} catch (IOException e1) {
throw new WBSAXException(
exceptionLocalizer.format(
"wbsax-output-flush-error"),
e1);
}
}