public class URLDataSource extends DataSource
URL.
This uses an AuthManager
to manage authentication and redirects.
DEFAULT_INTRO_LIMIT, MARK_WORKAROUND_PROPERTY| Constructor and Description |
|---|
URLDataSource(URL url)
Constructs a DataSource from a URL with default content coding
and AuthManager.
|
URLDataSource(URL url,
ContentCoding coding)
Constructs a DataSource from a URL with given content coding policy.
|
URLDataSource(URL url,
ContentCoding coding,
AuthManager authManager)
Constructs a DataSource from a URL with given content coding policy
and AuthManager.
|
| Modifier and Type | Method and Description |
|---|---|
protected InputStream |
getRawInputStream()
Provides a new InputStream for this data source.
|
URL |
getURL()
Returns the URL on which this
URLDataSource is based. |
close, forceCompression, getCompression, getHybridInputStream, getInputStream, getInputStream, getIntro, getIntroLimit, getLength, getMarkWorkaround, getName, getPosition, getRawLength, getSystemId, makeDataSource, makeDataSource, makeDataSource, setCompression, setIntroLimit, setMarkWorkaround, setName, setPosition, toStringpublic URLDataSource(URL url)
url - URLpublic URLDataSource(URL url, ContentCoding coding)
url - URLcoding - configures HTTP compression; may be overridden
if inapplicable or security concerns applypublic URLDataSource(URL url, ContentCoding coding, AuthManager authManager)
url - URLcoding - configures HTTP compression; may be overridden
if inapplicable or security concerns applyauthManager - authentication managerprotected InputStream getRawInputStream() throws IOException
DataSourcegetRawInputStream in class DataSourceIOExceptionpublic URL getURL()
URLDataSource is based.getURL in class DataSourceCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.