org.restlet.engine.http.io
Class InboundStream

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

public class InboundStream
extends BufferedInputStream

Buffered input stream that prevent the underlying stream from being closed.

Author:
Jerome Louvel

Field Summary
 
Fields inherited from class java.io.BufferedInputStream
buf, count, marklimit, markpos, pos
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
InboundStream(InputStream source)
          Constructor.
InboundStream(InputStream source, int size)
          Constructor.
 
Method Summary
 void close()
           
 
Methods inherited from class java.io.BufferedInputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.io.FilterInputStream
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InboundStream

public InboundStream(InputStream source)
Constructor.

Parameters:
source - The source input stream.

InboundStream

public InboundStream(InputStream source,
                     int size)
Constructor.

Parameters:
source - The source input stream.
size - the buffer size.
Method Detail

close

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


Copyright © 2005-2011 Noelios Technologies.