public class StaxUtil extends Object
| Constructor and Description |
|---|
StaxUtil() |
| Modifier and Type | Method and Description |
|---|---|
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 <T> T |
throwXmlAsIOException(XMLStreamException e)
Deprecated.
Since 2.9
|
@Deprecated public static <T> T throwXmlAsIOException(XMLStreamException e) throws IOException
XMLStreamException was caught.
Note: dummy type variable is used for convenience, to allow caller to claim that this method returns result of any necessary type.
IOExceptionpublic static <T> T throwAsParseException(XMLStreamException e, com.fasterxml.jackson.core.JsonParser p) throws IOException
IOExceptionpublic static <T> T throwAsGenerationException(XMLStreamException e, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
IOExceptionCopyright © 2020 FasterXML. All rights reserved.