Liking cljdoc? Tell your friends :D

javax.activation.URLDataSource

The URLDataSource class provides an object that wraps a URL object in a DataSource interface. URLDataSource simplifies the handling of data described by URLs within the JavaBeans Activation Framework because this class can be used to create new DataHandlers. NOTE: The DataHandler object creates a URLDataSource internally, when it is constructed with a URL.

The URLDataSource class provides an object that wraps a URL
object in a DataSource interface. URLDataSource simplifies the handling
of data described by URLs within the JavaBeans Activation Framework
because this class can be used to create new DataHandlers. NOTE: The
DataHandler object creates a URLDataSource internally,
when it is constructed with a URL.
raw docstring

->url-data-sourceclj

(->url-data-source url)

Constructor.

URLDataSource constructor. The URLDataSource class will not open a connection to the URL until a method requiring it to do so is called.

url - The URL to be encapsulated in this object. - java.net.URL

Constructor.

URLDataSource constructor. The URLDataSource class will
 not open a connection to the URL until a method requiring it
 to do so is called.

url - The URL to be encapsulated in this object. - `java.net.URL`
raw docstring

get-content-typeclj

(get-content-type this)

Returns the value of the URL content-type header field. It calls the URL's URLConnection.getContentType method after retrieving a URLConnection object. Note: this method attempts to call the openConnection method on the URL. If this method fails, or if a content type is not returned from the URLConnection, getContentType returns application/octet-stream as the content type.

returns: the content type. - java.lang.String

Returns the value of the URL content-type header field.
 It calls the URL's URLConnection.getContentType method
 after retrieving a URLConnection object.
 Note: this method attempts to call the openConnection
 method on the URL. If this method fails, or if a content type is not
 returned from the URLConnection, getContentType returns
 `application/octet-stream` as the content type.

returns: the content type. - `java.lang.String`
raw docstring

get-input-streamclj

(get-input-stream this)

The getInputStream method from the URL. Calls the openStream method on the URL.

returns: the InputStream. - java.io.InputStream

throws: java.io.IOException

The getInputStream method from the URL. Calls the
 openStream method on the URL.

returns: the InputStream. - `java.io.InputStream`

throws: java.io.IOException
raw docstring

get-nameclj

(get-name this)

Calls the getFile method on the URL used to instantiate the object.

returns: the result of calling the URL's getFile method. - java.lang.String

Calls the getFile method on the URL used to
 instantiate the object.

returns: the result of calling the URL's getFile method. - `java.lang.String`
raw docstring

get-output-streamclj

(get-output-stream this)

The getOutputStream method from the URL. First an attempt is made to get the URLConnection object for the URL. If that succeeds, the getOutputStream method on the URLConnection is returned.

returns: the OutputStream. - java.io.OutputStream

throws: java.io.IOException

The getOutputStream method from the URL. First an attempt is
 made to get the URLConnection object for the URL. If that
 succeeds, the getOutputStream method on the URLConnection
 is returned.

returns: the OutputStream. - `java.io.OutputStream`

throws: java.io.IOException
raw docstring

get-urlclj

(get-url this)

Return the URL used to create this DataSource.

returns: The URL. - java.net.URL

Return the URL used to create this DataSource.

returns: The URL. - `java.net.URL`
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close