public class

message_rfc822

extends Object
implements DataContentHandler
java.lang.Object
   ↳ com.google.code.com.sun.mail.handlers.message_rfc822

Summary

Fields
ActivationDataFlavor ourDataFlavor
Public Constructors
message_rfc822()
Public Methods
Object getContent(DataSource ds)
Return the content.
Object getTransferData(DataFlavor df, DataSource ds)
return the Transfer Data of type DataFlavor from InputStream
DataFlavor[] getTransferDataFlavors()
return the DataFlavors for this DataContentHandler
void writeTo(Object obj, String mimeType, OutputStream os)
construct an object from a byte stream (similar semantically to previous method, we are deciding which one to support)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.code.javax.activation.DataContentHandler

Fields

ActivationDataFlavor ourDataFlavor

Public Constructors

public message_rfc822 ()

Public Methods

public Object getContent (DataSource ds)

Return the content.

Parameters
ds The DataSource representing the data to be converted.
Returns
  • The constructed Object.
Throws
IOException

public Object getTransferData (DataFlavor df, DataSource ds)

return the Transfer Data of type DataFlavor from InputStream

Parameters
df The DataFlavor.
ds The DataSource representing the data to be converted.
Returns
  • a Message object
Throws
IOException

public DataFlavor[] getTransferDataFlavors ()

return the DataFlavors for this DataContentHandler

Returns
  • The DataFlavors.

public void writeTo (Object obj, String mimeType, OutputStream os)

construct an object from a byte stream (similar semantically to previous method, we are deciding which one to support)

Parameters
obj The object to be converted.
mimeType The requested MIME type of the resulting byte stream.
os The output stream into which to write the converted byte stream.
Throws
IOException