|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.objectxp.mms.message.GenericMessagePart
public class GenericMessagePart
Simple implementation of the MMSMessagePart interface. Instances of this
class can be added to a MMSMessage.
The GenericMessagePart should not be used with a
SMILMessage. Use a
SMILDocument instead.
| Constructor Summary | |
|---|---|
GenericMessagePart(java.lang.String contentType,
byte[] content)
Construct a generic message part. |
|
GenericMessagePart(java.lang.String contentType,
java.io.File content)
Construct a generic message part by reading the specified input stream. |
|
GenericMessagePart(java.lang.String contentType,
java.io.InputStream content)
Construct a generic message part by reading the specified input stream. |
|
GenericMessagePart(java.lang.String contentType,
java.lang.String contentLocation,
byte[] content)
Construct a generic message part. |
|
GenericMessagePart(java.lang.String contentType,
java.lang.String contentLocation,
java.io.InputStream content)
Construct a generic message part by reading the specified input stream. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCharset()
Get the character set of the content. |
byte[] |
getContent()
Get the content data of this message part. |
java.lang.String |
getContentLocation()
Get the content location of this message part. |
java.lang.String |
getContentType()
Get the content-type of this message part. |
java.lang.String |
getMimeType()
Get the mime-type of this message part. |
void |
setCharset(java.lang.String charset)
Set the character set (encoding) that has been used for encoding the content. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericMessagePart(java.lang.String contentType,
byte[] content)
contentType - the type of the content (e.g. 'image/jpeg').content - the content data
public GenericMessagePart(java.lang.String contentType,
java.io.File content)
throws java.io.IOException
contentType - the type of the content (e.g. "text/plain")content - the File holding the content
java.io.IOException - if reading from the stream results in an error
public GenericMessagePart(java.lang.String contentType,
java.io.InputStream content)
throws java.io.IOException
contentType - the type of the content (e.g. "text/plain")content - the InputStream for reading the content
java.io.IOException - if reading from the stream results in an error
public GenericMessagePart(java.lang.String contentType,
java.lang.String contentLocation,
java.io.InputStream content)
throws java.io.IOException
contentType - the type of the content (e.g. "text/plain")contentLocation - the content locationcontent - the InputStream for reading the content
java.io.IOException - if reading from the stream results in an error
public GenericMessagePart(java.lang.String contentType,
java.lang.String contentLocation,
byte[] content)
contentType - the type of the content (e.g. "text/plain")contentLocation - the content locationcontent - the content| Method Detail |
|---|
public byte[] getContent()
MMSMessagePart
getContent in interface MMSMessagePartpublic java.lang.String getMimeType()
MMSMessagePart
getMimeType in interface MMSMessagePartpublic java.lang.String getContentLocation()
MMSMessagePartSMIL document
refers to this location.
getContentLocation in interface MMSMessagePartpublic void setCharset(java.lang.String charset)
MMSMessagePart
setCharset in interface MMSMessagePartcharset - the character set (e.g. "UTF-8").public java.lang.String getCharset()
MMSMessagePart
getCharset in interface MMSMessagePartpublic java.lang.String getContentType()
MMSMessagePart
getContentType in interface MMSMessagePart
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||