public interface InterweavingResponse
Implementations of this interface must cache all content, beit byte or character following similar semantics of the Servlet and Porlet response classes. Buffered content should only be written when explicitly requested.
Modifier and Type | Method and Description |
---|---|
void |
flushContentToWrappedResponse()
Flush the current buffered content to the wrapped
response (this could be a Servlet or Portlet response)
|
void |
flushToWriter(java.io.Writer writer,
java.lang.String encoding)
Flush the current buffered content to the provided
Writer |
byte[] |
getBytes() |
char[] |
getChars() |
int |
getStatus() |
boolean |
isBytes() |
boolean |
isChars() |
void |
resetBuffers()
Clear the internal buffers.
|
void flushContentToWrappedResponse() throws java.io.IOException
java.io.IOException
- if content cannot be writtenvoid flushToWriter(java.io.Writer writer, java.lang.String encoding) throws java.io.IOException
Writer
writer
- target Writer
encoding
- the encoding that should be usedjava.io.IOException
- if content cannot be writtenvoid resetBuffers() throws java.io.IOException
java.io.IOException
- if some odd error occursboolean isBytes()
true
if content has been
written using an OutputStream
.boolean isChars()
true
if content has been
written using a Writer
.char[] getChars()
byte[] getBytes()
int getStatus()
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.