public class StaxUtil extends Object
Constructor and Description |
---|
StaxUtil() |
Modifier and Type | Method and Description |
---|---|
static XMLInputFactory |
defaultInputFactory(ClassLoader cl) |
static XMLOutputFactory |
defaultOutputFactory(ClassLoader cl) |
static String |
sanitizeXmlTypeName(String name)
Since XML names can not contain all characters JSON names can, we may
need to replace characters.
|
static <T> T |
throwAsGenerationException(XMLStreamException e,
com.fasterxml.jackson.core.JsonGenerator g) |
static <T> T |
throwAsParseException(XMLStreamException e,
com.fasterxml.jackson.core.JsonParser p) |
static org.codehaus.stax2.typed.Base64Variant |
toStax2Base64Variant(com.fasterxml.jackson.core.Base64Variant j64b)
Helper method used to "convert" Jackson's
Base64Variant into corresponding
Stax2 equivalent, to try to allow Jackson-style configuration for XML output as well. |
public static <T> T throwAsParseException(XMLStreamException e, com.fasterxml.jackson.core.JsonParser p) throws IOException
IOException
public static <T> T throwAsGenerationException(XMLStreamException e, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
IOException
public static String sanitizeXmlTypeName(String name)
public static org.codehaus.stax2.typed.Base64Variant toStax2Base64Variant(com.fasterxml.jackson.core.Base64Variant j64b)
Base64Variant
into corresponding
Stax2 equivalent, to try to allow Jackson-style configuration for XML output as well.j64b
- Jackson base64 variant to find match forpublic static XMLInputFactory defaultInputFactory(ClassLoader cl)
public static XMLOutputFactory defaultOutputFactory(ClassLoader cl)
Copyright © 2023 FasterXML. All rights reserved.