|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Feed
The Feed interface is used to print a resource as a feed.
| Field Summary | |
|---|---|
static String |
DEFAULT_CHARACTER_ENCODING
The default character encoding |
static String |
DEFAULT_CONTENT_TYPE
The default content type |
static String |
SELECTOR_ATOM
The request selector for Atom-formatted feeds (default) |
static String |
SELECTOR_FEED
The request selector for feeds |
static String |
SELECTOR_FEEDENTRY
The request selector for feed entries |
static String |
SELECTOR_RSS
The request selector for RSS-formatted feeds |
static String |
SUFFIX_COMMENTS
The suffix for comment links |
static String |
SUFFIX_FEED
The suffix for feed links |
static String |
SUFFIX_FEEDENTRY
The suffix for feed entry links |
static String |
SUFFIX_HTML
The suffix for HTML links |
static String |
SUFFIX_XML
The suffix for XML links |
| Method Summary | |
|---|---|
String |
getCharacterEncoding()
Returns the character encoding of the feed. |
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(Iterator<Resource> iter)
Prints the specified resources as feed entries |
void |
printEntries(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. |
| Field Detail |
|---|
static final String DEFAULT_CONTENT_TYPE
static final String DEFAULT_CHARACTER_ENCODING
static final String SELECTOR_FEED
static final String SELECTOR_FEEDENTRY
static final String SELECTOR_ATOM
static final String SELECTOR_RSS
static final String SUFFIX_HTML
static final String SUFFIX_XML
static final String SUFFIX_FEED
static final String SUFFIX_FEEDENTRY
static final String SUFFIX_COMMENTS
| Method Detail |
|---|
String getContentType()
String getCharacterEncoding()
void printHeader()
throws IOException
IOException - If output fails
void printEntry()
throws IOException
IOException - If output fails
void printEntry(Resource res)
throws IOException
res - the resource
IOException - If output fails
void printChildEntries()
throws IOException
IOException - If output fails
void printChildEntries(int max)
throws IOException
max - The maximum number of entries
IOException - If output fails
void printEntries(Iterator<Resource> iter)
throws IOException
iter - The resources
IOException - If output fails
void printEntries(Iterator<Resource> iter,
int max)
throws IOException
iter - The resourcesmax - The maximum number of entries
IOException - If output fails
void printFooter()
throws IOException
IOException - If output fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||