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