|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.portal.portlet.impl.jsr168.ContentBuffer
public class ContentBuffer
Data produced.
| Constructor Summary | |
|---|---|
ContentBuffer()
|
|
| Method Summary | |
|---|---|
void |
commit()
Simulate a response commit. |
byte[] |
getBytes()
Return the bytes of the content held by the fragment or null. |
java.lang.String |
getChars()
Return the chars of the content held by the fragment or null. |
java.lang.String |
getContentType()
Return the content type of the generated fragment. |
java.io.OutputStream |
getOutputStream()
|
java.io.PrintWriter |
getWriter()
Returns the writer. |
boolean |
isCommited()
|
void |
reset()
|
void |
setContentType(java.lang.String contentType)
Set the fragment of the content type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContentBuffer()
| Method Detail |
|---|
public byte[] getBytes()
public java.lang.String getChars()
public java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - the content type
public java.io.PrintWriter getWriter()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the output stream is already used or if no content type is defined
public java.io.OutputStream getOutputStream()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if the window writer is already used or if no content type is definedpublic void reset()
public void commit()
throws java.lang.IllegalStateException
java.lang.IllegalStateException - if no content type is definedpublic boolean isCommited()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||