Modifier and Type | Class and Description |
---|---|
class |
OtherContent.AtomHandler
Parses XML in the Atom format.
|
Content.ChildHandlerInfo
IContent.Type
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
OtherContent() |
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.
|
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.
|
getChildHandler
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
public int getType()
Content
IContent.Type
for the set of
expected values.public ContentType getMimeType()
public void setMimeType(ContentType v)
public java.lang.String getLang()
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 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