Package | Description |
---|---|
com.fasterxml.jackson.dataformat.xml |
Package that contains XML-based backends which can serialize POJOs
to and deserialize from XML, using Stax XML parsers and generators
for XML processing and mostly standard Jackson data binding otherwise.
|
com.fasterxml.jackson.dataformat.xml.deser | |
com.fasterxml.jackson.dataformat.xml.ser |
Modifier and Type | Field and Description |
---|---|
protected XmlNameProcessor |
XmlFactory._nameProcessor |
protected XmlNameProcessor |
XmlFactoryBuilder._nameProcessor
See
XmlNameProcessor and XmlNameProcessors |
Modifier and Type | Method and Description |
---|---|
XmlNameProcessor |
XmlFactory.getXmlNameProcessor() |
static XmlNameProcessor |
XmlNameProcessors.newAlwaysOnBase64Processor()
Similar to
XmlNameProcessors.newBase64Processor(String) , however, names will
always be escaped with base64. |
static XmlNameProcessor |
XmlNameProcessors.newBase64Processor()
Convenience method
equivalent to calling
XmlNameProcessors.newBase64Processor(String) with "base64_tag_" |
static XmlNameProcessor |
XmlNameProcessors.newBase64Processor(String prefix)
Generates a new processor that escapes all names that contains characters
OTHER than following characters:
Lower- or upper-case ASCII letter (a to z, A to Z)
Digit (0 to 9) in position OTHER than the first characters
Underscore
Hyphen (
- ) in position OTHER than the first character
Colon (only exposed if underlying parser is in non-namespace-aware mode)
with a base64-encoded version. |
static XmlNameProcessor |
XmlNameProcessors.newPassthroughProcessor()
Generates a new processor that does nothing and just passes through the
names as-is.
|
static XmlNameProcessor |
XmlNameProcessors.newReplacementProcessor()
Convenience method
equivalent to calling
XmlNameProcessors.newReplacementProcessor(String) with "_" |
static XmlNameProcessor |
XmlNameProcessors.newReplacementProcessor(String replacement)
Generates a new processor that replaces all characters that are NOT one of:
Lower- or upper-case ASCII letter (a to z, A to Z)
Digit (0 to 9) in position OTHER than the first character
Underscore
Hyphen (
- ) in position OTHER than the first character
Colon (only exposed if underlying parser is in non-namespace-aware mode)
in an
XML name with a replacement string. |
XmlNameProcessor |
XmlFactoryBuilder.xmlNameProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
XmlMapper.setXmlNameProcessor(XmlNameProcessor processor) |
void |
XmlFactory.setXmlNameProcessor(XmlNameProcessor processor) |
XmlMapper.Builder |
XmlMapper.Builder.xmlNameProcessor(XmlNameProcessor processor) |
XmlFactoryBuilder |
XmlFactoryBuilder.xmlNameProcessor(XmlNameProcessor nameProcessor) |
Constructor and Description |
---|
XmlFactory(com.fasterxml.jackson.core.ObjectCodec oc,
int xpFeatures,
int xgFeatures,
XMLInputFactory xmlIn,
XMLOutputFactory xmlOut,
String nameForTextElem,
XmlNameProcessor nameProcessor) |
Modifier and Type | Field and Description |
---|---|
protected XmlNameProcessor |
XmlTokenStream._nameProcessor |
Constructor and Description |
---|
FromXmlParser(com.fasterxml.jackson.core.io.IOContext ctxt,
int genericParserFeatures,
int xmlFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
XMLStreamReader xmlReader,
XmlNameProcessor tagProcessor) |
XmlTokenStream(XMLStreamReader xmlReader,
com.fasterxml.jackson.core.io.ContentReference sourceRef,
int formatFeatures,
XmlNameProcessor nameProcessor) |
Modifier and Type | Field and Description |
---|---|
protected XmlNameProcessor |
ToXmlGenerator._nameProcessor
Escapes names with invalid XML characters
|
Constructor and Description |
---|
ToXmlGenerator(com.fasterxml.jackson.core.io.IOContext ctxt,
int stdFeatures,
int xmlFeatures,
com.fasterxml.jackson.core.ObjectCodec codec,
XMLStreamWriter sw,
XmlNameProcessor nameProcessor) |
Copyright © 2022 FasterXML. All rights reserved.