| java.lang.Object |
| ↳ |
javax.mail.Multipart |
| |
↳ |
javax.mail.internet.MimeMultipart |
| |
|
↳ |
com.google.gdata.data.media.MediaMultipart |
Class Overview
The MediaMultipart class provides helper code for parsing and generating MIME
multipart/related content used to transport GData media resources. These
messages will always contains two parts: one with the Atom metadata about
the media and the other with the actual media content in any MIME format.
Summary
|
[Expand]
Inherited Fields |
From class
javax.mail.internet.MimeMultipart
|
private
boolean |
allowEmpty |
|
|
private
boolean |
bmparse |
|
|
private
boolean |
complete |
|
|
protected
DataSource |
ds |
|
|
private
boolean |
ignoreExistingBoundaryParameter |
|
|
private
boolean |
ignoreMissingBoundaryParameter |
|
|
private
boolean |
ignoreMissingEndBoundary |
|
|
protected
boolean |
parsed |
|
|
private
String |
preamble |
|
|
From class
javax.mail.Multipart
|
protected
String |
contentType |
|
|
protected
Part |
parent |
|
|
protected
Vector |
parts |
|
|
| Public Constructors |
|
|
MediaMultipart(String contentType, InputStream inputStream)
Constructs a new MediaMultipart instance by parsing MIME content from
the provided input stream.
|
|
|
MediaMultipart(IEntry entry, MediaSource media)
Constructs a new MediaMultipart instance from an Atom entry instance
and a media source.
|
| Protected Constructors |
|
|
MediaMultipart(String subType)
Constructor for subclasses.
|
|
[Expand]
Inherited Methods |
From class
javax.mail.internet.MimeMultipart
|
synchronized
void
|
addBodyPart(BodyPart arg0)
|
|
synchronized
void
|
addBodyPart(BodyPart arg0, int arg1)
|
|
InternetHeaders
|
createInternetHeaders(InputStream arg0)
|
|
MimeBodyPart
|
createMimeBodyPart(InputStream arg0)
|
|
MimeBodyPart
|
createMimeBodyPart(InternetHeaders arg0, byte[] arg1)
|
|
synchronized
BodyPart
|
getBodyPart(int arg0)
|
|
synchronized
BodyPart
|
getBodyPart(String arg0)
|
|
synchronized
int
|
getCount()
|
|
synchronized
String
|
getPreamble()
|
|
synchronized
boolean
|
isComplete()
|
|
synchronized
void
|
parse()
|
|
void
|
removeBodyPart(int arg0)
|
|
boolean
|
removeBodyPart(BodyPart arg0)
|
|
synchronized
void
|
setPreamble(String arg0)
|
|
synchronized
void
|
setSubType(String arg0)
|
|
synchronized
void
|
updateHeaders()
|
|
synchronized
void
|
writeTo(OutputStream arg0)
|
|
From class
javax.mail.Multipart
|
synchronized
void
|
addBodyPart(BodyPart arg0)
|
|
synchronized
void
|
addBodyPart(BodyPart arg0, int arg1)
|
|
synchronized
BodyPart
|
getBodyPart(int arg0)
|
|
synchronized
String
|
getContentType()
|
|
synchronized
int
|
getCount()
|
|
synchronized
Part
|
getParent()
|
|
synchronized
boolean
|
removeBodyPart(BodyPart arg0)
|
|
synchronized
void
|
removeBodyPart(int arg0)
|
|
synchronized
void
|
setMultipartDataSource(MultipartDataSource arg0)
|
|
synchronized
void
|
setParent(Part arg0)
|
|
abstract
void
|
writeTo(OutputStream arg0)
|
|
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
private
static
final
Logger
LOGGER
Public Constructors
public
MediaMultipart
(String contentType, InputStream inputStream)
Constructs a new MediaMultipart instance by parsing MIME content from
the provided input stream.
public
MediaMultipart
(IEntry entry, MediaSource media)
Constructs a new MediaMultipart instance from an Atom entry instance
and a media source.
Protected Constructors
protected
MediaMultipart
(String subType)
Constructor for subclasses.
Public Methods
public
MimeBodyPart
createMimeBodyPart
(InternetHeaders headers, byte[] content)
public
MimeBodyPart
createMimeBodyPart
(InputStream is)
Returns the body part containing atom content.
Returns the body part containing media content.
public
static
void
loadMimeMappings
()
Loads the default set of Java activation MIME mappings required by
the GData library. Extends the basic set configured by the JavaMail
library to add mappings for Atom, RSS, and JSON application types.