public interface StreamProvider
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
openStream(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> headers,
int connectTimeout,
int readTimeout)
Open stream to the specified URL.
|
java.io.InputStream openStream(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> headers,
int connectTimeout,
int readTimeout)
throws java.io.IOException
url - the urlheaders - the headers mapconnectTimeout - connection timeout in msreadTimeout - read timeout in msjava.io.IOException - when an error occursCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.