Package mondrian.tui
Class MockHttpServletResponse.MockServletOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- javax.servlet.ServletOutputStream
-
- mondrian.tui.MockHttpServletResponse.MockServletOutputStream
-
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Enclosing class:
- MockHttpServletResponse
static class MockHttpServletResponse.MockServletOutputStream extends ServletOutputStream
-
-
Constructor Summary
Constructors Constructor Description MockServletOutputStream(int size)
MockServletOutputStream(int size, String encoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearContent()
byte[]
getBinaryContent()
String
getContent()
boolean
isReady()
void
setEncoding(String encoding)
void
setWriteListener(WriteListener listener)
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, nullOutputStream, write, write
-
-
-
-
Constructor Detail
-
MockServletOutputStream
public MockServletOutputStream(int size)
-
MockServletOutputStream
public 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 classOutputStream
- Throws:
IOException
-
getContent
public String getContent() throws IOException
- Throws:
IOException
-
getBinaryContent
public byte[] getBinaryContent() throws IOException
- Throws:
IOException
-
clearContent
public void clearContent()
-
isReady
public boolean isReady()
- Specified by:
isReady
in classServletOutputStream
-
setWriteListener
public void setWriteListener(WriteListener listener)
- Specified by:
setWriteListener
in classServletOutputStream
-
-