EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.util.io
Class CapturedServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by 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.


Constructor Summary
CapturedServletOutputStream(ByteArrayOutputStream out)
           
 
Method Summary
 void close()
           
 void flush()
           
 void print(boolean arg0)
           
 void print(char arg0)
           
 void print(double arg0)
           
 void print(float arg0)
           
 void print(int arg0)
           
 void print(long arg0)
           
 void print(String arg0)
           
 void println()
           
 void println(boolean arg0)
           
 void println(char arg0)
           
 void println(double arg0)
           
 void println(float arg0)
           
 void println(int arg0)
           
 void println(long arg0)
           
 void println(String arg0)
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapturedServletOutputStream

public CapturedServletOutputStream(ByteArrayOutputStream out)
Method Detail

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)

EchoPoint API - 3.0.0b5
App Webcontainer