com.liferay.faces.bridge.filter
Class ServletOutputStreamAdapter

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by com.liferay.faces.bridge.filter.ServletOutputStreamAdapter
All Implemented Interfaces:
Closeable, Flushable

public class ServletOutputStreamAdapter
extends javax.servlet.ServletOutputStream

This class provides an ServletOutputStream adapter/wrapper around the OutputStream provided by the current PortletResponse. This is necessary in order to hack around a Servlet-API dependencies in the Mojarra implementation of JSF. Refer to usage in HttpServletResponseAdapter.getOutputStream() for more details.

Author:
Neil Griffin

Constructor Summary
ServletOutputStreamAdapter(javax.portlet.PortletResponse portletResponse)
           
 
Method Summary
 void write(int b)
           
 
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServletOutputStreamAdapter

public ServletOutputStreamAdapter(javax.portlet.PortletResponse portletResponse)
Method Detail

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException


Copyright © 2014 Liferay, Inc.. All Rights Reserved.