org.jboss.seam.mock
Class MockResponseWriter

java.lang.Object
  extended by java.io.Writer
      extended by javax.faces.context.ResponseWriter
          extended by org.jboss.seam.mock.MockResponseWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class MockResponseWriter
extends javax.faces.context.ResponseWriter


Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
MockResponseWriter()
           
MockResponseWriter(java.io.Writer writer)
           
 
Method Summary
 javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
           
 void close()
           
 void endDocument()
           
 void endElement(java.lang.String element)
           
 void flush()
           
 java.lang.String getCharacterEncoding()
           
 java.lang.String getContentType()
           
 java.io.Writer getWriter()
           
 void startDocument()
           
 void startElement(java.lang.String element, javax.faces.component.UIComponent component)
           
 void write(char[] cbuf)
           
 void write(char[] chars, int start, int end)
           
 void write(int c)
           
 void write(java.lang.String str)
           
 void write(java.lang.String str, int off, int len)
           
 void writeAttribute(java.lang.String attribute, java.lang.Object object, java.lang.String string)
           
 void writeComment(java.lang.Object object)
           
 void writeText(char[] chars, int start, int end)
           
 void writeText(java.lang.Object value, java.lang.String string)
           
 void writeURIAttribute(java.lang.String attribute, java.lang.Object object, java.lang.String string)
           
 
Methods inherited from class javax.faces.context.ResponseWriter
writeText
 
Methods inherited from class java.io.Writer
append, append, append
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockResponseWriter

public MockResponseWriter(java.io.Writer writer)

MockResponseWriter

public MockResponseWriter()
Method Detail

cloneWithWriter

public javax.faces.context.ResponseWriter cloneWithWriter(java.io.Writer writer)
Specified by:
cloneWithWriter in class javax.faces.context.ResponseWriter

endDocument

public void endDocument()
                 throws java.io.IOException
Specified by:
endDocument in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

endElement

public void endElement(java.lang.String element)
                throws java.io.IOException
Specified by:
endElement in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

getCharacterEncoding

public java.lang.String getCharacterEncoding()
Specified by:
getCharacterEncoding in class javax.faces.context.ResponseWriter

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in class javax.faces.context.ResponseWriter

startDocument

public void startDocument()
                   throws java.io.IOException
Specified by:
startDocument in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

startElement

public void startElement(java.lang.String element,
                         javax.faces.component.UIComponent component)
                  throws java.io.IOException
Specified by:
startElement in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

writeAttribute

public void writeAttribute(java.lang.String attribute,
                           java.lang.Object object,
                           java.lang.String string)
                    throws java.io.IOException
Specified by:
writeAttribute in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

writeComment

public void writeComment(java.lang.Object object)
                  throws java.io.IOException
Specified by:
writeComment in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

writeText

public void writeText(java.lang.Object value,
                      java.lang.String string)
               throws java.io.IOException
Specified by:
writeText in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

writeText

public void writeText(char[] chars,
                      int start,
                      int end)
               throws java.io.IOException
Specified by:
writeText in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

writeURIAttribute

public void writeURIAttribute(java.lang.String attribute,
                              java.lang.Object object,
                              java.lang.String string)
                       throws java.io.IOException
Specified by:
writeURIAttribute in class javax.faces.context.ResponseWriter
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] chars,
                  int start,
                  int end)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String str)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(int c)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] cbuf)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String str,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

getWriter

public java.io.Writer getWriter()


Copyright © 2011 Seam Framework. All Rights Reserved.