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 DataSource
public String getName()
getName
in interface DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
public URL getURL()
Copyright © 2013. All rights reserved.