org.restlet.engine.io
Class UnclosableInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.restlet.engine.io.UnclosableInputStream
All Implemented Interfaces:
Closeable

public class UnclosableInputStream
extends 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
UnclosableInputStream(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

UnclosableInputStream

public UnclosableInputStream(InputStream source)
Constructor.

Parameters:
source - The source input stream.
Method Detail

close

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


Copyright © 2005-2013 Restlet.