public class URLDataSource extends Object implements DataSource
| Constructor and Description |
|---|
URLDataSource(URL url)
Creates a URLDataSource from a URL object.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContentType()
Returns the value of the URL content-type header field.
|
InputStream |
getInputStream()
Returns an InputStream obtained from the URL.
|
String |
getName()
Returns the file name of the URL object.
|
OutputStream |
getOutputStream()
Returns an OutputStream obtained from the URL.
|
URL |
getURL()
Returns the URL of the data source.
|
public URLDataSource(URL url)
public String getContentType()
getContentType in interface DataSourcepublic String getName()
getName in interface DataSourcepublic InputStream getInputStream() throws IOException
getInputStream in interface DataSourceIOExceptionpublic OutputStream getOutputStream() throws IOException
getOutputStream in interface DataSourceIOExceptionpublic URL getURL()
Copyright © 2013. All Rights Reserved.