|
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.parlayx.multimedia_messaging.StringDataSource
@Deprecated public class StringDataSource
Examples:
Message message = MessageFactory.getInstance().createMessage(); StringDataSource plainDataSource = new StringDataSource("This is a Plain Text message.", "text/plain"); message.setDataHandler(new DataHandler(plainDataSource));
Message message = MessageFactory.getInstance().createMessage(); StringDataSource htmlDataSource = new StringDataSource("<html><head></head><body><b><i>This is an HTML part with a UTF-8 character: ?.</i></b></body></html>", "text/html; charset=UTF-8"); message.setDataHandler(new DataHandler(htmlDataSource));
Constructor Summary | |
---|---|
StringDataSource(byte[] bytes,
java.lang.String contentType)
Deprecated. Create a StringDataSource using the provided byte array. |
|
StringDataSource(InputStream stream,
java.lang.String contentType)
Deprecated. Create a StringDataSource using the provided InputStream. |
|
StringDataSource(java.lang.String content,
java.lang.String contentType)
Deprecated. Create a StringDataSource with the provided String content and contentType. |
Method Summary | |
---|---|
java.lang.String |
getContentType()
Deprecated. |
InputStream |
getInputStream()
Deprecated. Get an InputStream containing the data for this DataSource. |
java.lang.String |
getName()
Deprecated. |
OutputStream |
getOutputStream()
Deprecated. Get an OutputStream for this DataSource. |
java.lang.String |
getString()
Deprecated. Get the content of this DataSource as a String. |
void |
setName(java.lang.String name)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringDataSource(java.lang.String content, java.lang.String contentType)
content
- contentType
- public StringDataSource(byte[] bytes, java.lang.String contentType)
bytes
- contentType
- public StringDataSource(InputStream stream, java.lang.String contentType)
stream
- contentType
- Method Detail |
---|
public java.lang.String getContentType()
getContentType
in interface javax.activation.DataSource
public InputStream getInputStream() throws IOException
getInputStream
in interface javax.activation.DataSource
IOException
public java.lang.String getName()
getName
in interface javax.activation.DataSource
public void setName(java.lang.String name)
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface javax.activation.DataSource
IOException
public java.lang.String getString()
|
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 |