public class

OutOfLineContent

extends Content
implements IOutOfLineContent
java.lang.Object
   ↳ com.google.gdata.data.Content
     ↳ com.google.gdata.data.OutOfLineContent
Known Direct Subclasses

Class Overview

Variant of Content for entries that reference external content.

Summary

Nested Classes
class OutOfLineContent.AtomHandler Parses XML in the Atom format. 
Fields
protected String etag ETag for the referenced content.
protected String lang Language derived from the current state of xml:lang.
protected long length Content length.
protected ContentType mimeType MIME Content type.
protected String uri External URI.
Public Constructors
OutOfLineContent()
Public Methods
void generateAtom(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the Atom format.
void generateRss(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the RSS format.
String getEtag()
Returns the HTTP etag for the referenced content or null if none.
String getLang()
Returns the human language that this content is written in.
long getLength()
ContentType getMimeType()
Returns the MIME content type.
int getType()
Returns this content's type.
String getUri()
Returns the external URI.
void setEtag(String v)
void setLang(String v)
Specifies the human language that this content is written in.
void setLength(long v)
void setMimeType(ContentType v)
Specifies the MIME Content type.
void setUri(String v)
Specifies the external URI.
[Expand]
Inherited Methods
From class com.google.gdata.data.Content
From class java.lang.Object
From interface com.google.gdata.data.IContent
From interface com.google.gdata.data.IOutOfLineContent

Fields

protected String etag

ETag for the referenced content. Value will be null if unknown.

protected String lang

Language derived from the current state of xml:lang.

protected long length

Content length. Value will be -1 if unknown.

protected ContentType mimeType

MIME Content type.

protected String uri

External URI.

Public Constructors

public OutOfLineContent ()

Public Methods

public void generateAtom (XmlWriter w, ExtensionProfile extProfile)

Generates XML in the Atom format.

Parameters
w Output writer
extProfile Extension Profile for nested extensions
Throws
IOException

public void generateRss (XmlWriter w, ExtensionProfile extProfile)

Generates XML in the RSS format.

Parameters
w Output writer
extProfile Extension Profile for nested extensions
Throws
IOException

public String getEtag ()

Returns the HTTP etag for the referenced content or null if none.

public String getLang ()

Returns the human language that this content is written in.

Returns
  • the language of the content if available, or null if not.

public long getLength ()

Returns
  • the content length.

public ContentType getMimeType ()

Returns the MIME content type.

Returns
  • the MIME content type

public int getType ()

Returns this content's type. See IContent.Type for the set of expected values.

Returns
  • the type of this content

public String getUri ()

Returns the external URI.

Returns
  • the external URI

public void setEtag (String v)

Parameters
v

public void setLang (String v)

Specifies the human language that this content is written in.

Parameters
v

public void setLength (long v)

Parameters
v

public void setMimeType (ContentType v)

Specifies the MIME Content type.

Parameters
v

public void setUri (String v)

Specifies the external URI.

Parameters
v