public class OutOfLineContent extends Content implements IOutOfLineContent
Content
for entries that reference external content.Modifier and Type | Class and Description |
---|---|
class |
OutOfLineContent.AtomHandler
Parses XML in the Atom format.
|
Content.ChildHandlerInfo
IContent.Type
Constructor and Description |
---|
OutOfLineContent() |
Modifier and Type | Method and Description |
---|---|
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()
Returns the HTTP etag for the referenced content or
null if
none. |
java.lang.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.
|
java.lang.String |
getUri()
Returns the external URI.
|
void |
setEtag(java.lang.String v) |
void |
setLang(java.lang.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(java.lang.String v)
Specifies the external URI.
|
getChildHandler
public int getType()
Content
IContent.Type
for the set of
expected values.public ContentType getMimeType()
IOutOfLineContent
getMimeType
in interface IOutOfLineContent
public void setMimeType(ContentType v)
public java.lang.String getLang()
Content
public void setLang(java.lang.String v)
public java.lang.String getUri()
IOutOfLineContent
getUri
in interface IOutOfLineContent
public void setUri(java.lang.String v)
public long getLength()
public void setLength(long v)
public java.lang.String getEtag()
IOutOfLineContent
null
if
none.getEtag
in interface IOutOfLineContent
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 extensionsjava.io.IOException
public void generateRss(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generateRss
in class Content
w
- output writerextProfile
- Extension Profile for nested extensionsjava.io.IOException