|
Oracle Communication and Mobility Server Java API Reference E14335-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.sdp.parlayx.multimedia_messaging.ContentUtil
public class ContentUtil
| Field Summary | |
|---|---|
static javax.mail.internet.ContentType |
ANY_MULTIPART_TYPE
ContentType object representing the "multipart/*" MIME type. |
static javax.mail.internet.ContentType |
ANY_TEXT_TYPE
ContentType object representing the "text/*" MIME type. |
| Constructor Summary | |
|---|---|
ContentUtil()
|
|
| Method Summary | |
|---|---|
static byte[] |
getBytes(javax.mail.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 Object |
getContent(javax.mail.BodyPart p)
Get content object from a BodyPart. |
static Object |
getContent(javax.activation.DataHandler dh,
String contentType)
Get content object from a DataHandler. |
static String |
getString(javax.mail.BodyPart p)
Get String content from the provided BodyPart. |
static String |
getString(javax.activation.DataHandler dh)
Get String content from the provided DataHandler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static javax.mail.internet.ContentType ANY_MULTIPART_TYPE
public static javax.mail.internet.ContentType ANY_TEXT_TYPE
| Constructor Detail |
|---|
public ContentUtil()
| Method Detail |
|---|
public static String getString(javax.mail.BodyPart p)
throws javax.mail.MessagingException,
IOException
p -
javax.mail.MessagingException
IOException
public static String getString(javax.activation.DataHandler dh)
throws javax.mail.MessagingException,
IOException
dh -
javax.mail.MessagingException
IOException
public static byte[] getBytes(javax.mail.BodyPart p)
throws javax.mail.MessagingException,
IOException
p -
javax.mail.MessagingException
IOException
public static byte[] getBytes(javax.activation.DataHandler dh)
throws javax.mail.MessagingException,
IOException
dh -
javax.mail.MessagingException
IOException
public static Object getContent(javax.mail.BodyPart p)
throws javax.mail.MessagingException,
IOException
p -
javax.mail.MessagingException
IOException
public static Object getContent(javax.activation.DataHandler dh,
String contentType)
throws javax.mail.MessagingException,
IOException
p -
javax.mail.MessagingException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||