|
|||||||||
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.OutOfLineContent
public class OutOfLineContent
Variant of Content
for entries that reference external content.
Nested Class Summary | |
---|---|
class |
OutOfLineContent.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 java.lang.String |
etag
ETag for the referenced content. |
protected long |
length
Content length. |
protected ContentType |
mimeType
MIME Content type. |
protected java.lang.String |
uri
External URI. |
Constructor Summary | |
---|---|
OutOfLineContent()
|
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. |
java.lang.String |
getEtag()
|
java.lang.String |
getLang()
Returns the human language that this content is written in. |
long |
getLength()
|
ContentType |
getMimeType()
|
int |
getType()
Returns this content's type. |
java.lang.String |
getUri()
|
void |
setEtag(java.lang.String v)
|
void |
setLength(long v)
|
void |
setMimeType(ContentType v)
Specifies the MIME Content type. |
void |
setUri(java.lang.String v)
Specifies the external URI. |
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 uri
protected long length
protected java.lang.String etag
null
if unknown.
Constructor Detail |
---|
public OutOfLineContent()
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 java.lang.String getUri()
public void setUri(java.lang.String v)
public long getLength()
public void setLength(long v)
public java.lang.String getEtag()
public void setEtag(java.lang.String 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 |