|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream javax.servlet.ServletOutputStream com.mockrunner.mock.web.MockServletOutputStream
public class MockServletOutputStream
Mock implementation of ServletOutputStream
.
Constructor Summary | |
---|---|
MockServletOutputStream()
|
|
MockServletOutputStream(java.lang.String encoding)
|
Method Summary | |
---|---|
void |
clearContent()
|
byte[] |
getBinaryContent()
|
java.lang.String |
getContent()
|
void |
setEncoding(java.lang.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 |
---|
public MockServletOutputStream()
public MockServletOutputStream(java.lang.String encoding)
Method Detail |
---|
public void setEncoding(java.lang.String encoding)
public void write(int value) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public java.lang.String getContent()
public byte[] getBinaryContent()
public void clearContent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |