| Constructor and Description |
|---|
PodcastParser()
No-arg constructor
|
PodcastParser(Collection<NamespaceCallbackHandler> callbackHandlers,
Collection<ElementFilter> elementFilters)
Constructor with
NamespaceCallbackHandler. |
PodcastParser(ElementFilter elementFilter)
Constructor with
ElementFilter. |
PodcastParser(NamespaceCallbackHandler callbackHandler)
Constructor with
NamespaceCallbackHandler. |
PodcastParser(NamespaceCallbackHandler callbackHandler,
ElementFilter elementFilter)
Constructor with
NamespaceCallbackHandler and ElementFilter. |
| Modifier and Type | Method and Description |
|---|---|
Feed |
parse(Reader reader)
Parse the given XML
InputStream into a Feed object. |
Feed |
parse(String xml)
|
public PodcastParser()
public PodcastParser(NamespaceCallbackHandler callbackHandler)
NamespaceCallbackHandler. Use this constructor if you want to add custom
callbacks to the parsing process.callbackHandler - a NamespaceCallbackHandler implementationNullPointerException - if argument is nullpublic PodcastParser(ElementFilter elementFilter)
ElementFilter. Use this constructor if you want to filter elements from
the parsing process.elementFilter - a ElementFilter implementationNullPointerException - if argument is nullpublic PodcastParser(NamespaceCallbackHandler callbackHandler, ElementFilter elementFilter)
NamespaceCallbackHandler and ElementFilter. Use this constructor
if you want to add custom callbacks to and filter elements from the parsing process.callbackHandler - a NamespaceCallbackHandler implementationelementFilter - a ElementFilter implementationNullPointerException - if argument is nullpublic PodcastParser(Collection<NamespaceCallbackHandler> callbackHandlers, Collection<ElementFilter> elementFilters)
NamespaceCallbackHandler. Use this constructor if you want to multiple
callback handlers to execute custom logic to the parsing process.callbackHandlers - a Collection of NamespaceCallbackHandler implementationselementFilters - a Collection of ElementFilter implementationsNullPointerException - if either argument is null or contains nullpublic Feed parse(String xml) throws PodcastParserException
xml - a String object.Feed objectPodcastParserException - if anypublic Feed parse(Reader reader) throws PodcastParserException
InputStream into a Feed object.reader - a Reader object.Feed object.PodcastParserException - if any.Copyright © 2018. All rights reserved.