com.noelios.restlet.util
Class KeepAliveOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by com.noelios.restlet.util.KeepAliveOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class KeepAliveOutputStream
extends java.io.FilterOutputStream

OutputStream decorator to trap close() calls so that the decorated stream does not get closed.

Author:
Kevin Conaway

Field Summary
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
KeepAliveOutputStream(java.io.OutputStream source)
          Constructor.
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.FilterOutputStream
flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepAliveOutputStream

public KeepAliveOutputStream(java.io.OutputStream source)
Constructor.

Parameters:
source - The decorated source stream.
Method Detail

close

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


Copyright © 2005-2008 Noelios Technologies.