Module tools.jackson.dataformat.xml
Package tools.jackson.dataformat.xml.ser
Interface XmlGeneratorWritable
- All Known Subinterfaces:
PrologDirective
- All Known Implementing Classes:
DTD,NamespaceBinding,PrologComment,PrologPI,RootAttribute,XmlDeclaration
public interface XmlGeneratorWritable
Common API for XML entities to write via
ToXmlGenerator.- Since:
- 3.2
-
Method Summary
Modifier and TypeMethodDescriptionvoidwrite(ToXmlGenerator xmlGen, org.codehaus.stax2.XMLStreamWriter2 sw) Method to call to actually write out the entity using givenXMLStreamWriter2.
-
Method Details
-
write
Method to call to actually write out the entity using givenXMLStreamWriter2.ToXmlGeneratoris only passed in case access to configuration was needed.- Parameters:
xmlGen- Generator that called this method: MUST NOT call its output methods, only to be used for configuration accesssw- Writer to use for actual output of XML event- Throws:
XMLStreamException
-