info.magnolia.cms.cache
Class MultiplexServletOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by info.magnolia.cms.cache.MultiplexServletOutputStream
All Implemented Interfaces:
Closeable, Flushable

Deprecated. since 3.6 - use TeeOutputStream from commons-io along with SimpleServletOutputStream

public class MultiplexServletOutputStream
extends javax.servlet.ServletOutputStream

A simple ServletOutputStream implementation that duplicates any output to two different output stream. Very similar to TeeOutputStream from commons-io.

Version:
$Revision$ ($Author$)
Author:
Fabrizio Giustina

Constructor Summary
MultiplexServletOutputStream(OutputStream stream1, OutputStream stream2)
          Deprecated.  
 
Method Summary
 void close()
          Deprecated.  
 void flush()
          Deprecated.  
 void write(byte[] value)
          Deprecated.  
 void write(byte[] b, int off, int len)
          Deprecated.  
 void write(int value)
          Deprecated.  
 
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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplexServletOutputStream

public MultiplexServletOutputStream(OutputStream stream1,
                                    OutputStream stream2)
Deprecated. 
Method Detail

write

public void write(int value)
           throws IOException
Deprecated. 
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] value)
           throws IOException
Deprecated. 
Overrides:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Deprecated. 
Overrides:
write in class OutputStream
Throws:
IOException

flush

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

close

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


Copyright © 2003–2014 Magnolia International Ltd.. All rights reserved.