javax.activation
public class URLDataSource extends Object implements DataSource
Constructor Summary | |
---|---|
URLDataSource(URL url)
Creates a URLDataSource from a URL object. |
Method Summary | |
---|---|
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. |
Returns: the InputStream from URL.openStream()
Returns: the name as returned by URL.getFile()