org.jboss.portal.server.output
Class FragmentResult
java.lang.Object
org.jboss.portal.server.output.Result
org.jboss.portal.server.output.FragmentResult
public class FragmentResult
- extends Result
Data produced.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FragmentResult
public FragmentResult(WindowContext producer)
getBytes
public java.io.ByteArrayOutputStream getBytes()
getChars
public java.io.StringWriter getChars()
getTitle
public java.lang.String getTitle()
setTitle
public void setTitle(java.lang.String title)
getContentType
public java.lang.String getContentType()
setContentType
public void setContentType(java.lang.String contentType)
getWriter
public java.io.PrintWriter getWriter()
throws java.lang.IllegalStateException
- Throws:
java.lang.IllegalStateException
- if the output stream is already used or if no content type is defined
getOutputStream
public java.io.OutputStream getOutputStream()
throws java.io.IOException,
java.lang.IllegalStateException
- Throws:
java.io.IOException
java.lang.IllegalStateException
- if the window writer is already used or if no content type is defined
resetBuffer
public void resetBuffer()