public class

Rfc822MediaSource

extends Object
implements MediaSource
java.lang.Object
   ↳ com.google.gdata.data.appsforyourdomain.migration.Rfc822MediaSource

Class Overview

MediaSource that wraps an RFC822 message in UTF8 format.

Summary

Fields
private final String rfc822Msg
Public Constructors
Rfc822MediaSource(String rfc822Msg)
Constructs a new Rfc822MediaSource from the RFC822 message in UTF-8 format.
Public Methods
long getContentLength()
Returns the length (in bytes) of the media source.
String getContentType()
String getEtag()
Returns the entity tag (etag) value associated with the media content or null if unknown.
InputStream getInputStream()
DateTime getLastModified()
Returns the last modification time of the media content or null if unknown.
String getName()
OutputStream getOutputStream()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.data.media.MediaSource
From interface javax.activation.DataSource

Fields

private final String rfc822Msg

Public Constructors

public Rfc822MediaSource (String rfc822Msg)

Constructs a new Rfc822MediaSource from the RFC822 message in UTF-8 format.

Parameters
rfc822Msg The text of the RFC822 message

Public Methods

public long getContentLength ()

Returns the length (in bytes) of the media source. A value of -1 indicates the length is unknown.

public String getContentType ()

public String getEtag ()

Returns the entity tag (etag) value associated with the media content or null if unknown.

public InputStream getInputStream ()

public DateTime getLastModified ()

Returns the last modification time of the media content or null if unknown.

public String getName ()

public OutputStream getOutputStream ()