org.eclipse.webdav.client
Class ResponseInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
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.
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResponseInputStream
public ResponseInputStream(IResponse response)
- Creates a new input stream on the given response.
- Parameters:
response
- a response from a WebDAV server
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.