Top Fields Constructors Methods
com.sun.mail.handlers

public Class message_rfc822

extends handler_base
Class Inheritance
Imports
java.io.*, java.util.Properties, javax.activation.*, javax.mail.*, javax.mail.internet.*

Author
Christopher Cotton

Field Summary

Modifier and TypeField and Description
private static ActivationDataFlavor[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Object
getContent(DataSource
The DataSource representing the data to be converted.
ds
)

Implements javax.activation.DataContentHandler.getContent.

Return the content.
protected ActivationDataFlavor[]
getDataFlavors()

Implements abstract com.sun.mail.handlers.handler_base.getDataFlavors.

Return an array of ActivationDataFlavors that we support.
public void
writeTo(Object
The object to be converted.
obj
,
String
The requested MIME type of the resulting byte stream.
mimeType
,
OutputStream
The output stream into which to write the converted byte stream.
os
)

Implements javax.activation.DataContentHandler.writeTo.

Write the object as a byte stream.
Inherited from com.sun.mail.handlers.handler_base:
getDatagetTransferDatagetTransferDataFlavors

Field Detail

ourDataFlavorback to summary
private static ActivationDataFlavor[] ourDataFlavor

Constructor Detail

message_rfc822back to summary
public message_rfc822()

Method Detail

getContentback to summary
public Object getContent(DataSource ds) throws IOException

Implements javax.activation.DataContentHandler.getContent.

Return the content.

Parameters
ds:DataSource

Doc from javax.activation.DataContentHandler.getContent.

The DataSource representing the data to be converted.

Returns:Object

Doc from javax.activation.DataContentHandler.getContent.

The constructed Object.

Annotations
@Override
Exceptions
IOException:

Doc from javax.activation.DataContentHandler.getContent.

if the data can't be accessed

getDataFlavorsback to summary
protected ActivationDataFlavor[] getDataFlavors()

Implements abstract com.sun.mail.handlers.handler_base.getDataFlavors.

Doc from com.sun.mail.handlers.handler_base.getDataFlavors.

Return an array of ActivationDataFlavors that we support. Usually there will be only one.

Returns:ActivationDataFlavor[]

array of ActivationDataFlavors that we support

Annotations
@Override
writeToback to summary
public void writeTo(Object obj, String mimeType, OutputStream os) throws IOException

Implements javax.activation.DataContentHandler.writeTo.

Write the object as a byte stream.

Parameters
obj:Object

Doc from javax.activation.DataContentHandler.writeTo.

The object to be converted.

mimeType:String

Doc from javax.activation.DataContentHandler.writeTo.

The requested MIME type of the resulting byte stream.

os:OutputStream

Doc from javax.activation.DataContentHandler.writeTo.

The output stream into which to write the converted byte stream.

Annotations
@Override
Exceptions
IOException:

Doc from javax.activation.DataContentHandler.writeTo.

errors writing to the stream