It generates all flavors of RSS (0.90, 0.91, 0.92, 0.93, 0.94, 1.0 and 2.0) and Atom 0.3 feeds. Generators are plugable (they must implement the ModuleParser interface).
| Modifier and Type | Field and Description |
|---|---|
| private static Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static FeedGenerators | |
| public static List | Returns: a list of String elements with the supported output feed types.Returns the list of supported output feed types. |
| public void | output(final WireFeed
Abstract feed to create XML representation from. The type of the WireFeed must
match the type given to the FeedOuptut constructor. feed, final File the file where to write the XML representation for the given WireFeed. file)Creates a File containing with the XML representation for the given WireFeed. |
| public void | output(final WireFeed
Abstract feed to create XML representation from. The type of the WireFeed must
match the type given to the FeedOuptut constructor. feed, final File the file where to write the XML representation for the given WireFeed. file, final boolean pretty-print XML (true) oder collapsed prettyPrint)Creates a File containing with the XML representation for the given WireFeed. |
| public void | output(final WireFeed
Abstract feed to create XML representation from. The type of the WireFeed must
match the type given to the FeedOuptut constructor. feed, final Writer Writer to write the XML representation for the given WireFeed. writer)Writes to an Writer the XML representation for the given WireFeed. |
| public void | output(final WireFeed
Abstract feed to create XML representation from. The type of the WireFeed must
match the type given to the FeedOuptut constructor. feed, final Writer Writer to write the XML representation for the given WireFeed. writer, final boolean pretty-print XML (true) oder collapsed prettyPrint)Writes to an Writer the XML representation for the given WireFeed. |
| public Document | Returns: the JDOM document for the given WireFeed.Abstract feed to create JDOM document from. The type of the WireFeed must match
the type given to the FeedOuptut constructor. feed)Creates a JDOM document for the given WireFeed. |
| public String | Returns: a String with the XML representation for the given WireFeed.Abstract feed to create XML representation from. The type of the WireFeed must
match the type given to the FeedOuptut constructor. feed)Creates a String with the XML representation for the given WireFeed. |
| public String | Returns: a String with the XML representation for the given WireFeed.Abstract feed to create XML representation from. The type of the WireFeed must
match the type given to the FeedOuptut constructor. feed, final boolean pretty-print XML (true) oder collapsed prettyPrint)Creates a String with the XML representation for the given WireFeed. |
| public Document | Returns: the W3C DOM document for the given WireFeed.Abstract feed to create W3C DOM document from. The type of the WireFeed must
match the type given to the FeedOuptut constructor. feed)Creates a W3C DOM document for the given WireFeed. |
| clMap | back to summary |
|---|---|
| private static Map<ClassLoader, FeedGenerators> clMap | |
| WireFeedOutput | back to summary |
|---|---|
| public WireFeedOutput() Creates a FeedOuput instance.
| |
| getFeedGenerators | back to summary |
|---|---|
| private static FeedGenerators getFeedGenerators() | |
| getSupportedFeedTypes | back to summary |
|---|---|
| public static List Returns the list of supported output feed types.
| |
| output | back to summary |
|---|---|
| public void output(final WireFeed feed, final File file) throws IllegalArgumentException, IOException, FeedException Creates a File containing with the XML representation for the given WireFeed. If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. The platform default charset encoding is used to write the feed to the file. It is the responsibility of the developer to ensure the feed encoding is set to the platform charset encoding. Note This method delages to the 'Document WireFeedOutput#outputJDom(WireFeed)'.
| |
| output | back to summary |
|---|---|
| public void output(final WireFeed feed, final File file, final boolean prettyPrint) throws IllegalArgumentException, IOException, FeedException Creates a File containing with the XML representation for the given WireFeed. If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. The platform default charset encoding is used to write the feed to the file. It is the responsibility of the developer to ensure the feed encoding is set to the platform charset encoding. Note This method delages to the 'Document WireFeedOutput#outputJDom(WireFeed)'.
| |
| output | back to summary |
|---|---|
| public void output(final WireFeed feed, final Writer writer) throws IllegalArgumentException, IOException, FeedException Writes to an Writer the XML representation for the given WireFeed. If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. It is the responsibility of the developer to ensure the Writer instance is using the same charset encoding. Note This method delages to the 'Document WireFeedOutput#outputJDom(WireFeed)'.
| |
| output | back to summary |
|---|---|
| public void output(final WireFeed feed, final Writer writer, final boolean prettyPrint) throws IllegalArgumentException, IOException, FeedException Writes to an Writer the XML representation for the given WireFeed. If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. It is the responsibility of the developer to ensure the Writer instance is using the same charset encoding. Note This method delages to the 'Document WireFeedOutput#outputJDom(WireFeed)'.
| |
| outputJDom | back to summary |
|---|---|
| public Document outputJDom(final WireFeed feed) throws IllegalArgumentException, FeedException Creates a JDOM document for the given WireFeed. This method does not use the feed encoding property. Note All other output methods delegate to this method.
| |
| outputString | back to summary |
|---|---|
| public String outputString(final WireFeed feed) throws IllegalArgumentException, FeedException Creates a String with the XML representation for the given WireFeed. If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. It is the responsibility of the developer to ensure that if the String is written to a character stream the stream charset is the same as the feed encoding property. Note This method delages to the 'Document WireFeedOutput#outputJDom(WireFeed)'.
| |
| outputString | back to summary |
|---|---|
| public String outputString(final WireFeed feed, final boolean prettyPrint) throws IllegalArgumentException, FeedException Creates a String with the XML representation for the given WireFeed. If the feed encoding is not NULL, it will be used in the XML prolog encoding attribute. It is the responsibility of the developer to ensure that if the String is written to a character stream the stream charset is the same as the feed encoding property. Note This method delages to the 'Document WireFeedOutput#outputJDom(WireFeed)'.
| |
| outputW3CDom | back to summary |
|---|---|
| public Document outputW3CDom(final WireFeed feed) throws IllegalArgumentException, FeedException Creates a W3C DOM document for the given WireFeed. This method does not use the feed encoding property. Note This method delages to the 'Document WireFeedOutput#outputJDom(WireFeed)'.
| |