org.directwebremoting.util
Class DelegatingServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by org.directwebremoting.util.DelegatingServletOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class DelegatingServletOutputStream
extends javax.servlet.ServletOutputStream

Delegating implementation of ServletOutputStream.


Constructor Summary
DelegatingServletOutputStream(java.io.OutputStream proxy)
          Create a new DelegatingServletOutputStream.
 
Method Summary
 void close()
           
 void flush()
           
 java.io.OutputStream getTargetStream()
          Accessor for the stream that we are proxying to
 void write(int b)
           
 
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
write, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelegatingServletOutputStream

public DelegatingServletOutputStream(java.io.OutputStream proxy)
Create a new DelegatingServletOutputStream.

Parameters:
proxy - the target OutputStream
Method Detail

getTargetStream

public java.io.OutputStream getTargetStream()
Accessor for the stream that we are proxying to

Returns:
The stream we proxy to

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

Copyright 2008