public abstract class

Content

extends Object
implements IContent
java.lang.Object
   ↳ com.google.gdata.data.Content
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Abstract base class for entry content.

Summary

Nested Classes
class Content.ChildHandlerInfo Return type for getChildHandler(ExtensionProfile, Attributes) contains an element handler and a content element. 
Public Constructors
Content()
Public Methods
abstract void generateAtom(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the Atom format.
abstract void generateRss(XmlWriter w, ExtensionProfile extProfile)
Generates XML in the RSS format.
static Content.ChildHandlerInfo getChildHandler(ExtensionProfile extProfile, Attributes attrs)
Parses XML in the Atom format.
abstract String getLang()
Returns the human language that this content is written in.
abstract int getType()
Returns this content's type.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.data.IContent

Public Constructors

public Content ()

Public Methods

public abstract 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 abstract 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 static Content.ChildHandlerInfo getChildHandler (ExtensionProfile extProfile, Attributes attrs)

Parses XML in the Atom format.

Parameters
extProfile ExtensionProfile used for nested content.
attrs XML attributes of the Content node. Used to determine the type of this node.
Returns
  • a child handler
Throws
IOException
ParseException

public abstract 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 abstract int getType ()

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

Returns
  • the type of content.