Package org.apache.qpid.jms.util
Class ContentTypeSupport
- java.lang.Object
-
- org.apache.qpid.jms.util.ContentTypeSupport
-
public final class ContentTypeSupport extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ContentTypeSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.nio.charset.CharsetparseContentTypeForTextualCharset(java.lang.String contentType)
-
-
-
Method Detail
-
parseContentTypeForTextualCharset
public static java.nio.charset.Charset parseContentTypeForTextualCharset(java.lang.String contentType) throws InvalidContentTypeException- Parameters:
contentType- the contentType of the received message- Returns:
- the character set to use, or null if not to treat the message as text
- Throws:
InvalidContentTypeException- if the content-type is invalid in some way.
-
-