public class UnhandledNamespaceCounter extends Object implements NamespaceCallbackHandler
NamespaceCallbackHandler implementation that counts every occurrence of any
Namespace that is not known to this library.
Add an instance to any number of PodcastParser instances. Generate a report using
toString().
This implementation is threadsafe.
| Constructor and Description |
|---|
UnhandledNamespaceCounter() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getNamespaceURIs() |
void |
registerUnknownNamespace(String rootNamespace,
XMLStreamReader reader,
ParseLevel level)
Receives a callback when an element is encountered for which no handling has been defined in this
library.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitbeforeProcess, beforeProcess, registerUnhandledElementpublic void registerUnknownNamespace(String rootNamespace, XMLStreamReader reader, ParseLevel level)
NamespaceCallbackHandlerReceives a callback when an element is encountered for which no handling has been defined in this library.
Note that any implementation must not move the reader. Doing so will cause an
IllegalStateException to be thrown.
registerUnknownNamespace in interface NamespaceCallbackHandlerrootNamespace - String name of the root namespace (RSS|Atom)reader - XMLStreamReader instance, having just processed a
XMLStreamConstants.START_ELEMENT event with the given namespace.level - ParseLevel level at which the element is encounteredCopyright © 2018. All rights reserved.