public class Channel extends Object implements Serializable
Implementation object representing a channel in the Rich Site Summary DTD, version 0.91. This class may be subclassed to further specialize its behavior.
Modifier and Type | Field and Description |
---|---|
protected String |
copyright
The channel copyright (1-100 characters).
|
protected String |
description
The channel description (1-500 characters).
|
protected String |
docs
The channel description file URL (1-500 characters).
|
protected Image |
image
The image describing this channel.
|
protected ArrayList<Item> |
items
The set of items associated with this Channel.
|
protected String |
language
The channel language (2-5 characters).
|
protected String |
lastBuildDate
The channel last build date (1-100 characters).
|
protected String |
link
The channel link (1-500 characters).
|
protected String |
managingEditor
The managing editor (1-100 characters).
|
protected String |
pubDate
The channel publication date (1-100 characters).
|
protected String |
rating
The channel rating (20-500 characters).
|
protected ArrayList<String> |
skipDays
The set of skip days for this channel.
|
protected ArrayList<String> |
skipHours
The set of skip hours for this channel.
|
protected TextInput |
textInput
The text input description for this channel.
|
protected String |
title
The channel title (1-100 characters).
|
protected double |
version
The RSS specification version number used to create this Channel.
|
protected String |
webMaster
The webmaster email address (1-100 characters).
|
Constructor and Description |
---|
Channel() |
Modifier and Type | Method and Description |
---|---|
void |
addItem(Item item)
Add an additional item.
|
void |
addSkipDay(String skipDay)
Add an additional skip day name.
|
void |
addSkipHour(String skipHour)
Add an additional skip hour name.
|
Item[] |
findItems()
Return the items for this channel.
|
String[] |
findSkipDays()
Return the skip days for this channel.
|
String[] |
findSkipHours()
Return the skip hours for this channel.
|
String |
getCopyright() |
String |
getDescription() |
String |
getDocs() |
Image |
getImage() |
Item[] |
getItems()
Return the items for this channel.
|
String |
getLanguage() |
String |
getLastBuildDate() |
String |
getLink() |
String |
getManagingEditor() |
String |
getPubDate() |
String |
getRating() |
String[] |
getSkipDays()
Return the skip days for this channel.
|
String[] |
getSkipHours()
Return the skip hours for this channel.
|
TextInput |
getTextInput() |
String |
getTitle() |
double |
getVersion() |
String |
getWebMaster() |
void |
removeItem(Item item)
Remove an item for this channel.
|
void |
removeSkipDay(String skipDay)
Remove a skip day for this channel.
|
void |
removeSkipHour(String skipHour)
Remove a skip hour for this channel.
|
void |
render(OutputStream stream)
Render this channel as XML conforming to the RSS 0.91 specification,
to the specified output stream, with no indication of character
encoding.
|
void |
render(OutputStream stream,
String encoding)
Render this channel as XML conforming to the RSS 0.91 specification,
to the specified output stream, with the specified character encoding.
|
void |
render(PrintWriter writer)
Render this channel as XML conforming to the RSS 0.91 specification,
to the specified writer, with no indication of character encoding.
|
void |
render(PrintWriter writer,
String encoding)
Render this channel as XML conforming to the RSS 0.91 specification,
to the specified writer, indicating the specified character encoding.
|
void |
render(Writer writer)
Render this channel as XML conforming to the RSS 0.91 specification,
to the specified writer, with no indication of character encoding.
|
void |
render(Writer writer,
String encoding)
Render this channel as XML conforming to the RSS 0.91 specification,
to the specified writer, indicating the specified character encoding.
|
void |
setCopyright(String copyright) |
void |
setDescription(String description) |
void |
setDocs(String docs) |
void |
setImage(Image image) |
void |
setLanguage(String language) |
void |
setLastBuildDate(String lastBuildDate) |
void |
setLink(String link) |
void |
setManagingEditor(String managingEditor) |
void |
setPubDate(String pubDate) |
void |
setRating(String rating) |
void |
setTextInput(TextInput textInput) |
void |
setTitle(String title) |
void |
setVersion(double version) |
void |
setWebMaster(String webMaster) |
protected String description
protected String lastBuildDate
protected String managingEditor
protected double version
public Channel()
public String getCopyright()
public void setCopyright(String copyright)
public String getDescription()
public void setDescription(String description)
public String getLanguage()
public void setLanguage(String language)
public String getLastBuildDate()
public void setLastBuildDate(String lastBuildDate)
public String getManagingEditor()
public void setManagingEditor(String managingEditor)
public String getPubDate()
public void setPubDate(String pubDate)
public TextInput getTextInput()
public void setTextInput(TextInput textInput)
public double getVersion()
public void setVersion(double version)
public String getWebMaster()
public void setWebMaster(String webMaster)
public void addItem(Item item)
item
- The item to be addedpublic void addSkipDay(String skipDay)
skipDay
- The skip day to be addedpublic void addSkipHour(String skipHour)
skipHour
- The skip hour to be addedpublic String[] findSkipDays()
public String[] getSkipHours()
public String[] findSkipHours()
public String[] getSkipDays()
public void removeItem(Item item)
item
- The item to be removedpublic void removeSkipDay(String skipDay)
skipDay
- The skip day to be removedpublic void removeSkipHour(String skipHour)
skipHour
- The skip hour to be removedpublic void render(OutputStream stream)
stream
- The output stream to write topublic void render(OutputStream stream, String encoding) throws UnsupportedEncodingException
stream
- The output stream to write toencoding
- The character encoding to declare, or null
for no declarationUnsupportedEncodingException
- if the named encoding
is not supportedpublic void render(Writer writer)
writer
- The writer to render output topublic void render(Writer writer, String encoding)
writer
- The writer to render output toencoding
- The character encoding to declare, or null
for no declarationpublic void render(PrintWriter writer)
writer
- The writer to render output topublic void render(PrintWriter writer, String encoding)
writer
- The writer to render output toencoding
- The character encoding to declare, or null
for no declarationCopyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.