public class URLDataSource extends DataSource
URL
.DEFAULT_INTRO_LIMIT, MARK_WORKAROUND_PROPERTY
Constructor | Description |
---|---|
URLDataSource(java.net.URL url) |
Constructs a DataSource from a URL with default content coding.
|
URLDataSource(java.net.URL url,
ContentCoding coding) |
Constructs a DataSource from a URL with given content coding policy.
|
Modifier and Type | Method | Description |
---|---|---|
protected java.io.InputStream |
getRawInputStream() |
Provides a new InputStream for this data source.
|
java.net.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, setCompression, setIntroLimit, setMarkWorkaround, setName, setPosition, toString
public URLDataSource(java.net.URL url)
url
- URLpublic URLDataSource(java.net.URL url, ContentCoding coding)
url
- URLcoding
- configures HTTP compression; may be overridden
if inapplicable or security concerns applyprotected java.io.InputStream getRawInputStream() throws java.io.IOException
DataSource
getRawInputStream
in class DataSource
java.io.IOException
public java.net.URL getURL()
getURL
in class DataSource
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.