public interface Feed
Feed
interface is used to print a resource as a feed.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_CHARACTER_ENCODING
The default character encoding
|
static java.lang.String |
DEFAULT_CONTENT_TYPE
The default content type
|
static java.lang.String |
SELECTOR_ATOM
The request selector for Atom-formatted feeds (default)
|
static java.lang.String |
SELECTOR_FEED
The request selector for feeds
|
static java.lang.String |
SELECTOR_FEEDENTRY
The request selector for feed entries
|
static java.lang.String |
SELECTOR_RSS
The request selector for RSS-formatted feeds
|
static java.lang.String |
SUFFIX_COMMENTS
The suffix for comment links
|
static java.lang.String |
SUFFIX_FEED
The suffix for feed links
|
static java.lang.String |
SUFFIX_FEEDENTRY
The suffix for feed entry links
|
static java.lang.String |
SUFFIX_HTML
The suffix for HTML links
|
static java.lang.String |
SUFFIX_XML
The suffix for XML links
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCharacterEncoding()
Returns the character encoding of the feed.
|
java.lang.String |
getContentType()
Returns the content type of the feed.
|
void |
printChildEntries()
Prints the children of the current resource as feed entries
|
void |
printChildEntries(int max)
Prints the children of the current resource as feed entries
|
void |
printEntries(java.util.Iterator<Resource> iter)
Prints the specified resources as feed entries
|
void |
printEntries(java.util.Iterator<Resource> iter,
int max)
Prints the specified resources as feed entries
|
void |
printEntry()
Prints the current resource as a feed entry.
|
void |
printEntry(Resource res)
Prints the specified resource as a feed entry
|
void |
printFooter()
Writes the feed footer.
|
void |
printHeader()
Writes the feed header.
|
static final java.lang.String DEFAULT_CONTENT_TYPE
static final java.lang.String DEFAULT_CHARACTER_ENCODING
static final java.lang.String SELECTOR_FEED
static final java.lang.String SELECTOR_FEEDENTRY
static final java.lang.String SELECTOR_ATOM
static final java.lang.String SELECTOR_RSS
static final java.lang.String SUFFIX_HTML
static final java.lang.String SUFFIX_XML
static final java.lang.String SUFFIX_FEED
static final java.lang.String SUFFIX_FEEDENTRY
static final java.lang.String SUFFIX_COMMENTS
java.lang.String getContentType()
java.lang.String getCharacterEncoding()
void printHeader() throws java.io.IOException
java.io.IOException
- If output failsvoid printEntry() throws java.io.IOException
java.io.IOException
- If output failsvoid printEntry(Resource res) throws java.io.IOException
res
- the resourcejava.io.IOException
- If output failsvoid printChildEntries() throws java.io.IOException
java.io.IOException
- If output failsvoid printChildEntries(int max) throws java.io.IOException
max
- The maximum number of entriesjava.io.IOException
- If output failsvoid printEntries(java.util.Iterator<Resource> iter) throws java.io.IOException
iter
- The resourcesjava.io.IOException
- If output failsvoid printEntries(java.util.Iterator<Resource> iter, int max) throws java.io.IOException
iter
- The resourcesmax
- The maximum number of entriesjava.io.IOException
- If output failsvoid printFooter() throws java.io.IOException
java.io.IOException
- If output failsCopyright © 2010 - 2020 Adobe. All Rights Reserved