org.restlet.engine.http.io
Class OutboundStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by java.io.BufferedOutputStream
              extended by org.restlet.engine.http.io.OutboundStream
All Implemented Interfaces:
Closeable, Flushable

public class OutboundStream
extends BufferedOutputStream

Buffered output stream that prevents the underlying stream from being closed.

Author:
Jerome Louvel

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

Constructor Detail

OutboundStream

public OutboundStream(OutputStream source)
Constructor.

Parameters:
source - The decorated source stream.

OutboundStream

public OutboundStream(OutputStream source,
                      int size)
Constructor.

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

close

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


Copyright © 2005-2011 Noelios Technologies.