return charBuffer.getWriter();
}
public OutputStream getPortletOutputStream() throws IOException
{
ByteBuffer byteBuffer;
if (buffer != null)
{
if (buffer instanceof ByteBuffer)
{
byteBuffer = (ByteBuffer)buffer;
}
else
{
throw new IllegalStateException("The method getWriter() was already called");
}
}
else
{
buffer = byteBuffer = new ByteBuffer();
}
return byteBuffer.getOutputStream();
}