com.noelios.restlet.util
Class KeepAliveInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by com.noelios.restlet.util.KeepAliveInputStream
All Implemented Interfaces:
java.io.Closeable

public class KeepAliveInputStream
extends java.io.FilterInputStream

InputStream decorator to trap close() calls so that the underlying stream is not closed.

Author:
Kevin Conaway

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
KeepAliveInputStream(java.io.InputStream source)
          Constructor.
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.FilterInputStream
available, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeepAliveInputStream

public KeepAliveInputStream(java.io.InputStream source)
Constructor.

Parameters:
source - The source input 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.FilterInputStream
Throws:
java.io.IOException


Copyright © 2005-2008 Noelios Technologies.