echopoint.util.io
Class CapturedServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
echopoint.util.io.CapturedServletOutputStream
- All Implemented Interfaces:
- Closeable, Flushable
public class CapturedServletOutputStream
- extends ServletOutputStream
An ServletOutputStream that will capture the content
as it otherwise passes into the ether.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CapturedServletOutputStream
public CapturedServletOutputStream(ByteArrayOutputStream out)
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class OutputStream
- Throws:
IOException- See Also:
OutputStream.close()
flush
public void flush()
throws IOException
- Specified by:
flush in interface Flushable- Overrides:
flush in class OutputStream
- Throws:
IOException- See Also:
OutputStream.flush()
print
public void print(boolean arg0)
throws IOException
- Overrides:
print in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.print(boolean)
print
public void print(char arg0)
throws IOException
- Overrides:
print in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.print(char)
print
public void print(double arg0)
throws IOException
- Overrides:
print in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.print(double)
print
public void print(float arg0)
throws IOException
- Overrides:
print in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.print(float)
print
public void print(int arg0)
throws IOException
- Overrides:
print in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.print(int)
print
public void print(long arg0)
throws IOException
- Overrides:
print in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.print(long)
println
public void println()
throws IOException
- Overrides:
println in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.println()
println
public void println(boolean arg0)
throws IOException
- Overrides:
println in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.println(boolean)
println
public void println(char arg0)
throws IOException
- Overrides:
println in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.println(char)
println
public void println(double arg0)
throws IOException
- Overrides:
println in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.println(double)
println
public void println(float arg0)
throws IOException
- Overrides:
println in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.println(float)
println
public void println(int arg0)
throws IOException
- Overrides:
println in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.println(int)
println
public void println(long arg0)
throws IOException
- Overrides:
println in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.println(long)
print
public void print(String arg0)
throws IOException
- Overrides:
print in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.print(java.lang.String)
println
public void println(String arg0)
throws IOException
- Overrides:
println in class ServletOutputStream
- Throws:
IOException- See Also:
ServletOutputStream.println(java.lang.String)
write
public void write(int b)
throws IOException
- Specified by:
write in class OutputStream
- Throws:
IOException- See Also:
OutputStream.write(int)
write
public void write(byte[] b)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException- See Also:
OutputStream.write(byte[])
write
public void write(byte[] b,
int off,
int len)
throws IOException
- Overrides:
write in class OutputStream
- Throws:
IOException- See Also:
OutputStream.write(byte[], int, int)