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.
(->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
(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`
(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`
(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`
(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`
(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`
(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`
(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.
(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`
(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`
(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
(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
(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`
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close