|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.activation.URLDataSource
public class URLDataSource
DataSource implementation that retrieves its data from a URL.
| Constructor Summary | |
|---|---|
URLDataSource(URL url)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getContentType()
Returns the Content-Type header for the URL. |
InputStream |
getInputStream()
Returns an input stream from which the data can be read. |
String |
getName()
Returns the result of getFile of the underlying URL. |
OutputStream |
getOutputStream()
Returns an output stream to which the data can be written. |
URL |
getURL()
Returns the underlying URL. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLDataSource(URL url)
| Method Detail |
|---|
public String getContentType()
getContentType in interface DataSourcepublic String getName()
getFile of the underlying URL.
getName in interface DataSource
public InputStream getInputStream()
throws IOException
DataSource
getInputStream in interface DataSourceIOException
public OutputStream getOutputStream()
throws IOException
DataSource
getOutputStream in interface DataSourceIOExceptionpublic URL getURL()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||