Package com.independentsoft.email.mime
Class ContentType
java.lang.Object
com.independentsoft.email.mime.ContentType
Class ContentType.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes a new instance of the ContentType class.ContentType(String contentType)Initializes a new instance of the ContentType class.ContentType(String type, String subtype)Initializes a new instance of the ContentType class.ContentType(String type, String subtype, String charset)Initializes a new instance of the ContentType class. -
Method Summary
Modifier and TypeMethodDescriptionGets the character set.Gets the parameters.Gets the subtype.getType()Gets the type.voidsetCharSet(String value)Sets the character set.voidsetSubType(String subtype)Sets the subtype.voidSets the type.toString()Returns a String that represents this instance.
-
Constructor Details
-
ContentType
public ContentType()Initializes a new instance of the ContentType class. -
ContentType
Initializes a new instance of the ContentType class.- Parameters:
type- The type.subtype- The subtype.
-
ContentType
Initializes a new instance of the ContentType class.- Parameters:
type- The type.subtype- The subtype.charset- The charset.
-
ContentType
Initializes a new instance of the ContentType class.- Parameters:
contentType- Type of the content.
-
-
Method Details
-
toString
Returns a String that represents this instance. -
getType
Gets the type.- Returns:
- The type.
-
setType
Sets the type.- Parameters:
type- The type.
-
getSubType
Gets the subtype.- Returns:
- The subtype.
-
setSubType
Sets the subtype.- Parameters:
subtype- The subtype.
-
getCharSet
Gets the character set.- Returns:
- The character set.
-
setCharSet
Sets the character set.- Parameters:
value- The character set.
-
getParameters
Gets the parameters.- Returns:
- The parameters.
-