|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.activation.URLDataSource
public class URLDataSource
Constructor Summary | |
---|---|
URLDataSource(java.net.URL url)
Creates a URLDataSource from a URL object. |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Returns the value of the URL content-type header field. |
java.io.InputStream |
getInputStream()
Returns an InputStream obtained from the URL. |
java.lang.String |
getName()
Returns the file name of the URL object. |
java.io.OutputStream |
getOutputStream()
Returns an OutputStream obtained from the URL. |
java.net.URL |
getURL()
Returns the URL of the data source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public URLDataSource(java.net.URL url)
Method Detail |
---|
public java.lang.String getContentType()
getContentType
in interface DataSource
public java.lang.String getName()
getName
in interface DataSource
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface DataSource
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
getOutputStream
in interface DataSource
java.io.IOException
public java.net.URL getURL()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |