public class MockServletOutputStream extends ServletOutputStream
| Constructor and Description |
|---|
MockServletOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Returns the array of bytes that have been written to the output stream.
|
String |
getString()
Returns, as a character string, the output that was written to the output stream.
|
void |
write(int b)
Pass through method calls ByteArrayOutputStream.write(int b).
|
print, print, print, print, print, print, print, println, println, println, println, println, println, println, printlnclose, flush, write, writepublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic byte[] getBytes()
public String getString()
© Copyright 2005-2006, Stripes Development Team.