Liking cljdoc? Tell your friends :D

javax.activation.MimeType

A Multipurpose Internet Mail Extension (MIME) type, as defined in RFC 2045 and 2046.

A Multipurpose Internet Mail Extension (MIME) type, as defined
in RFC 2045 and 2046.
raw docstring

->mime-typeclj

(->mime-type)
(->mime-type rawdata)
(->mime-type primary sub)

Constructor.

Constructor that builds a MimeType with the given primary and sub type but has an empty parameter list.

primary - the primary MIME type - java.lang.String sub - the MIME sub-type - java.lang.String

throws: javax.activation.MimeTypeParseException - if the primary type or subtype is not a valid token

Constructor.

Constructor that builds a MimeType with the given primary and sub type
 but has an empty parameter list.

primary - the primary MIME type - `java.lang.String`
sub - the MIME sub-type - `java.lang.String`

throws: javax.activation.MimeTypeParseException - if the primary type or subtype is not a valid token
raw docstring

get-base-typeclj

(get-base-type this)

Return a String representation of this object without the parameter list.

returns: the MIME type and sub-type - java.lang.String

Return a String representation of this object
 without the parameter list.

returns: the MIME type and sub-type - `java.lang.String`
raw docstring

get-parameterclj

(get-parameter this name)

Retrieve the value associated with the given name, or null if there is no current association.

name - the parameter name - java.lang.String

returns: the paramter's value - java.lang.String

Retrieve the value associated with the given name, or null if there
 is no current association.

name - the parameter name - `java.lang.String`

returns: the paramter's value - `java.lang.String`
raw docstring

get-parametersclj

(get-parameters this)

Retrieve this object's parameter list.

returns: a MimeTypeParameterList object representing the parameters - javax.activation.MimeTypeParameterList

Retrieve this object's parameter list.

returns: a MimeTypeParameterList object representing the parameters - `javax.activation.MimeTypeParameterList`
raw docstring

get-primary-typeclj

(get-primary-type this)

Retrieve the primary type of this object.

returns: the primary MIME type - java.lang.String

Retrieve the primary type of this object.

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

get-sub-typeclj

(get-sub-type this)

Retrieve the subtype of this object.

returns: the MIME subtype - java.lang.String

Retrieve the subtype of this object.

returns: the MIME subtype - `java.lang.String`
raw docstring

matchclj

(match this type)

Determine if the primary and sub type of this object is the same as what is in the given type.

type - the MimeType object to compare with - javax.activation.MimeType

returns: true if they match - boolean

Determine if the primary and sub type of this object is
 the same as what is in the given type.

type - the MimeType object to compare with - `javax.activation.MimeType`

returns: true if they match - `boolean`
raw docstring

read-externalclj

(read-external this in)

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays. The readExternal method must read the values in the same sequence and with the same types as were written by writeExternal.

in - the ObjectInput object to read from - java.io.ObjectInput

throws: java.lang.ClassNotFoundException - If the class for an object being restored cannot be found.

The object implements the readExternal method to restore its
 contents by calling the methods of DataInput for primitive
 types and readObject for objects, strings and arrays.  The
 readExternal method must read the values in the same sequence
 and with the same types as were written by writeExternal.

in - the ObjectInput object to read from - `java.io.ObjectInput`

throws: java.lang.ClassNotFoundException - If the class for an object being restored cannot be found.
raw docstring

remove-parameterclj

(remove-parameter this name)

Remove any value associated with the given name.

name - the parameter name - java.lang.String

Remove any value associated with the given name.

name - the parameter name - `java.lang.String`
raw docstring

set-parameterclj

(set-parameter this name value)

Set the value to be associated with the given name, replacing any previous association.

name - the parameter name - java.lang.String value - the paramter's value - java.lang.String

Set the value to be associated with the given name, replacing
 any previous association.

name - the parameter name - `java.lang.String`
value - the paramter's value - `java.lang.String`
raw docstring

set-primary-typeclj

(set-primary-type this primary)

Set the primary type for this object to the given String.

primary - the primary MIME type - java.lang.String

throws: javax.activation.MimeTypeParseException - if the primary type is not a valid token

Set the primary type for this object to the given String.

primary - the primary MIME type - `java.lang.String`

throws: javax.activation.MimeTypeParseException - if the primary type is not a valid token
raw docstring

set-sub-typeclj

(set-sub-type this sub)

Set the subtype for this object to the given String.

sub - the MIME subtype - java.lang.String

throws: javax.activation.MimeTypeParseException - if the subtype is not a valid token

Set the subtype for this object to the given String.

sub - the MIME subtype - `java.lang.String`

throws: javax.activation.MimeTypeParseException - if the subtype is not a valid token
raw docstring

to-stringclj

(to-string this)

Return the String representation of this object.

returns: a string representation of the object. - java.lang.String

Return the String representation of this object.

returns: a string representation of the object. - `java.lang.String`
raw docstring

write-externalclj

(write-external this out)

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings and arrays.

out - the ObjectOutput object to write to - java.io.ObjectOutput

throws: java.io.IOException - Includes any I/O exceptions that may occur

The object implements the writeExternal method to save its contents
 by calling the methods of DataOutput for its primitive values or
 calling the writeObject method of ObjectOutput for objects, strings
 and arrays.

out - the ObjectOutput object to write to - `java.io.ObjectOutput`

throws: java.io.IOException - Includes any I/O exceptions that may occur
raw docstring

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

× close