Writer outputWriter = externalContext.getResponseOutputWriter();
outputWriter.write(delayedOutput);
}
}
else if (incongruousAction == IncongruousAction.WRITE_RESPONSE_OUTPUT_STREAM) {
DelayedResponseOutputStream delayedResponseOutputStream = (DelayedResponseOutputStream)
getResponseOutputStream();
byte[] delayedOutputByteArray = delayedResponseOutputStream.toByteArray();
int length = 0;
if (delayedOutputByteArray != null) {
length = delayedOutputByteArray.length;
}