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:
java.io.Closeable, java.io.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: 41137 $ ($Author: gjoseph $)
Author:
Fabrizio Giustina

Constructor Summary
MultiplexServletOutputStream(java.io.OutputStream stream1, java.io.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(java.io.OutputStream stream1,
                                    java.io.OutputStream stream2)
Deprecated. 
Method Detail

write

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

write

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

write

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

flush

public void flush()
           throws java.io.IOException
Deprecated. 
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
Deprecated. 
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.