|
Oracle Fusion Middleware Communication Services 11.1.1.3.0 Java API Reference E14785-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.sdp.parlayx.multimedia_messaging.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. |
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
Constructor Detail |
---|
public ContentUtil()
Method Detail |
---|
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
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
|
Oracle Fusion Middleware Communication Services 11.1.1.3.0 Java API Reference E14785-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |