org.eclipse.webdav.client
Class ResponseInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.eclipse.webdav.client.ResponseInputStream
All Implemented Interfaces:
Closeable

public class ResponseInputStream
extends FilterInputStream

An InputStream on a response from a WebDAV server.

Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ResponseInputStream(IResponse response)
          Creates a new input stream on the given response.
 
Method Summary
 void close()
          Closes the response and frees all system resources associated with this input stream.
 IContext getContext()
          Returns the http header of the response from the WebDAV server on which this input stream is based.
 
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

ResponseInputStream

public ResponseInputStream(IResponse response)
Creates a new input stream on the given response.

Parameters:
response - a response from a WebDAV server
Method Detail

close

public void close()
           throws IOException
Closes the response and frees all system resources associated with this input stream.

Specified by:
close in interface Closeable
Overrides:
close in class FilterInputStream
Throws:
IOException

getContext

public IContext getContext()
Returns the http header of the response from the WebDAV server on which this input stream is based. The context contains information that may be useful such as the content length and content type of this input stream.



Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.