mondrian.tui
Class MockHttpServletResponse.MockServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by mondrian.tui.MockHttpServletResponse.MockServletOutputStream
All Implemented Interfaces:
Closeable, Flushable
Enclosing class:
MockHttpServletResponse

static class MockHttpServletResponse.MockServletOutputStream
extends ServletOutputStream

 

Constructor Summary
MockHttpServletResponse.MockServletOutputStream(int size)
           
MockHttpServletResponse.MockServletOutputStream(int size, String encoding)
           
 
Method Summary
 void clearContent()
           
 byte[] getBinaryContent()
           
 String getContent()
           
 void setEncoding(String encoding)
           
 void write(int value)
           
 
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

MockHttpServletResponse.MockServletOutputStream

public MockHttpServletResponse.MockServletOutputStream(int size)

MockHttpServletResponse.MockServletOutputStream

public MockHttpServletResponse.MockServletOutputStream(int size,
                                                       String encoding)
Method Detail

setEncoding

public void setEncoding(String encoding)

write

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

getContent

public String getContent()
                  throws IOException
Throws:
IOException

getBinaryContent

public byte[] getBinaryContent()
                        throws IOException
Throws:
IOException

clearContent

public void clearContent()

SourceForge.net_Logo