public class

MediaBodyPart

extends MimeBodyPart
java.lang.Object
   ↳ javax.mail.BodyPart
     ↳ javax.mail.internet.MimeBodyPart
       ↳ com.google.gdata.data.media.MediaBodyPart

Class Overview

The MediaBodyPart class extends the base MimeBodyPart implementation to provide streaming media support for GData MIME multipart content. When the body part contains media content (anything other than "application/atom+xml"), the body part will use a custom DataHandler implementation that keeps the data in raw stream format.

Summary

[Expand]
Inherited Constants
From interface javax.mail.Part
Fields
private MediaSource mediaSource
[Expand]
Inherited Fields
From class javax.mail.internet.MimeBodyPart
From class javax.mail.BodyPart
Public Constructors
MediaBodyPart()
MediaBodyPart(InputStream is)
MediaBodyPart(IEntry entry)
MediaBodyPart(MediaSource mediaSource)
MediaBodyPart(InternetHeaders headers, byte[] content)
Public Methods
MediaSource getMediaSource()
Returns the media source associated with the body part.
boolean isAtomPart()
Returns true if the body part contains Atom data.
[Expand]
Inherited Methods
From class javax.mail.internet.MimeBodyPart
From class javax.mail.BodyPart
From class java.lang.Object
From interface javax.mail.Part
From interface javax.mail.internet.MimePart

Fields

private MediaSource mediaSource

Public Constructors

public MediaBodyPart ()

public MediaBodyPart (InputStream is)

Parameters
is
Throws
MessagingException

public MediaBodyPart (IEntry entry)

Parameters
entry
Throws
MessagingException

public MediaBodyPart (MediaSource mediaSource)

Parameters
mediaSource
Throws
MessagingException

public MediaBodyPart (InternetHeaders headers, byte[] content)

Parameters
headers
content
Throws
MessagingException

Public Methods

public MediaSource getMediaSource ()

Returns the media source associated with the body part.

public boolean isAtomPart ()

Returns true if the body part contains Atom data.

Throws
MessagingException