Java javax.activation MimeType fields, constructors, methods, implement or subclass

Example usage for Java javax.activation MimeType fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.activation MimeType.

The text is from its open source code.

Constructor

MimeType(String rawdata)
Constructor that builds a MimeType from a String.
MimeType(String primary, String sub)
Constructor that builds a MimeType with the given primary and sub type but has an empty parameter list.
MimeType()
Default constructor.

Method

StringgetBaseType()
Return a String representation of this object without the parameter list.
StringgetParameter(String name)
Retrieve the value associated with the given name, or null if there is no current association.
MimeTypeParameterListgetParameters()
Retrieve this object's parameter list.
StringgetPrimaryType()
Retrieve the primary type of this object.
StringgetSubType()
Retrieve the subtype of this object.
booleanmatch(MimeType type)
Determine if the primary and sub type of this object is the same as what is in the given type.
booleanmatch(String rawdata)
Determine if the primary and sub type of this object is the same as the content type described in rawdata.
voidsetParameter(String name, String value)
Set the value to be associated with the given name, replacing any previous association.
StringtoString()
Return the String representation of this object.