|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.Content
com.google.gdata.data.OtherContent
public class OtherContent
Variant of Content
for entries containing miscellaneous
inlined content types.
Nested Class Summary | |
---|---|
class |
OtherContent.AtomHandler
Parses XML in the Atom format. |
Nested classes/interfaces inherited from class com.google.gdata.data.Content |
---|
Content.ChildHandlerInfo, Content.Type |
Field Summary | |
---|---|
protected byte[] |
bytes
Binary Contents. |
protected Extension |
ext
Extension content. |
protected java.lang.String |
lang
Language. |
protected ContentType |
mimeType
MIME type. |
protected java.lang.String |
text
Text contents. |
protected XmlBlob |
xml
XML contents. |
Constructor Summary | |
---|---|
OtherContent()
|
Method Summary | |
---|---|
void |
generateAtom(XmlWriter w,
ExtensionProfile extProfile)
Generates XML in the Atom format. |
void |
generateRss(XmlWriter w,
ExtensionProfile extProfile)
Generates XML in the RSS format. |
byte[] |
getBytes()
|
java.lang.String |
getLang()
Returns the human language that this content is written in. |
ContentType |
getMimeType()
|
java.lang.String |
getText()
|
int |
getType()
Returns this content's type. |
XmlBlob |
getXml()
|
Extension |
getXmlContent()
Returns the nested xml content. |
void |
setBytes(byte[] v)
Specifies the binary contents. |
void |
setLang(java.lang.String v)
Specifies the human language that this content is written in. |
void |
setMimeType(ContentType v)
Specifies the MIME type. |
void |
setText(java.lang.String v)
Specifies the plain-text contents. |
void |
setXml(XmlBlob v)
Specifies the XML contents. |
void |
setXmlContent(Extension extension)
Sets the nested xml content. |
Methods inherited from class com.google.gdata.data.Content |
---|
getChildHandler |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ContentType mimeType
protected java.lang.String lang
xml:lang
.
Applies to inline text and binary types only.
protected Extension ext
protected XmlBlob xml
protected java.lang.String text
protected byte[] bytes
Constructor Detail |
---|
public OtherContent()
Method Detail |
---|
public int getType()
Content
getType
in interface IContent
getType
in class Content
public ContentType getMimeType()
public void setMimeType(ContentType v)
public java.lang.String getLang()
Content
getLang
in interface IContent
getLang
in class Content
public void setLang(java.lang.String v)
public Extension getXmlContent()
public void setXmlContent(Extension extension)
public XmlBlob getXml()
public void setXml(XmlBlob v)
public java.lang.String getText()
public void setText(java.lang.String v)
public byte[] getBytes()
public void setBytes(byte[] v)
public void generateAtom(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generateAtom
in class Content
w
- output writerextProfile
- Extension Profile for nested extensions
java.io.IOException
public void generateRss(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generateRss
in class Content
w
- output writerextProfile
- Extension Profile for nested extensions
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |