Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.activation.URLDataSource
Constructor Summary | |
|
Method Summary | |
String |
|
InputStream |
|
String |
|
OutputStream |
|
URL |
|
public URLDataSource(URL url)
Constructor. This will not open the connection to the URL.
public String getContentType()
Returns the Content-Type header for the URL. In the case of failure or lack of such a header, returns "application/octet-stream".
- Specified by:
- getContentType in interface DataSource
public InputStream getInputStream() throws IOException
Returns an input stream from which the data can be read.
- Specified by:
- getInputStream in interface DataSource
public String getName()
Returns the result ofgetFile
of the underlying URL.
- Specified by:
- getName in interface DataSource
public OutputStream getOutputStream() throws IOException
Returns an output stream to which the data can be written.
- Specified by:
- getOutputStream in interface DataSource
public URL getURL()
Returns the underlying URL.