Class UnclosedElementCollectingEventWriter
java.lang.Object
org.springframework.batch.item.xml.stax.UnclosedElementCollectingEventWriter
- All Implemented Interfaces:
XMLEventConsumer
,XMLEventWriter
Delegating XMLEventWriter, which collects the QNames of elements that were opened but
not closed.
- Since:
- 3.0
- Author:
- Jimmy Praet, Mahmoud Ben Hassine
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
add
(XMLEventReader reader) void
close()
void
flush()
void
void
setNamespaceContext
(NamespaceContext context) void
-
Field Details
-
wrappedEventWriter
-
-
Constructor Details
-
UnclosedElementCollectingEventWriter
-
-
Method Details
-
add
- Specified by:
add
in interfaceXMLEventConsumer
- Specified by:
add
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
getUnclosedElements
-
add
- Specified by:
add
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
close
- Specified by:
close
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
flush
- Specified by:
flush
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
getNamespaceContext
- Specified by:
getNamespaceContext
in interfaceXMLEventWriter
-
getPrefix
- Specified by:
getPrefix
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
setDefaultNamespace
- Specified by:
setDefaultNamespace
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
setNamespaceContext
- Specified by:
setNamespaceContext
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-
setPrefix
- Specified by:
setPrefix
in interfaceXMLEventWriter
- Throws:
XMLStreamException
-