|
Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference E14011-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.sdp.messaging.util.ContentUtil
public class ContentUtil
Field Summary | |
---|---|
static ContentType |
ANY_MULTIPART_TYPE
ContentType object representing the "multipart/*" MIME type. |
static ContentType |
ANY_TEXT_TYPE
ContentType object representing the "text/*" MIME type. |
static java.lang.String |
CHARSET_PARAMETER
|
static java.lang.String |
NAME_PARAMETER
|
static ContentType |
TEXT_PLAIN_TYPE
|
Constructor Summary | |
---|---|
ContentUtil()
|
Method Summary | |
---|---|
static byte[] |
getBytes(BodyPart p)
Get binary (byte array) content from the provided BodyPart. |
static byte[] |
getBytes(javax.activation.DataHandler dh)
Get binary (byte array) content from the provided DataHandler. |
static java.lang.Object |
getContent(BodyPart p)
Get content object from a BodyPart. |
static java.lang.Object |
getContent(javax.activation.DataHandler dh,
java.lang.String contentType)
Get content object from a DataHandler. |
static java.lang.String |
getString(BodyPart p)
Get String content from the provided BodyPart. |
static java.lang.String |
getString(javax.activation.DataHandler dh)
Get String content from the provided DataHandler. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static ContentType ANY_MULTIPART_TYPE
public static ContentType ANY_TEXT_TYPE
public static ContentType TEXT_PLAIN_TYPE
public static final java.lang.String NAME_PARAMETER
public static final java.lang.String CHARSET_PARAMETER
Constructor Detail |
---|
public ContentUtil()
Method Detail |
---|
public static java.lang.String getString(BodyPart p) throws MessagingException, IOException
p
-
MessagingException
IOException
public static java.lang.String getString(javax.activation.DataHandler dh) throws MessagingException, IOException
dh
-
MessagingException
IOException
public static byte[] getBytes(BodyPart p) throws MessagingException, IOException
p
-
MessagingException
IOException
public static byte[] getBytes(javax.activation.DataHandler dh) throws MessagingException, IOException
dh
-
MessagingException
IOException
public static java.lang.Object getContent(BodyPart p) throws MessagingException, IOException
p
-
MessagingException
IOException
public static java.lang.Object getContent(javax.activation.DataHandler dh, java.lang.String contentType) throws MessagingException, IOException
p
-
MessagingException
IOException
|
Oracle Fusion Middleware User Messaging Service 11.1.1.7.0 Java API Reference E14011-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |