Class StaxUtil
- java.lang.Object
-
- com.fasterxml.jackson.dataformat.xml.util.StaxUtil
-
public class StaxUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description StaxUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method 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
-
-
-
Method Detail
-
throwXmlAsIOException
@Deprecated public static <T> T throwXmlAsIOException(XMLStreamException e) throws IOException
Deprecated.Since 2.9Adapter method used when only IOExceptions are declared to be thrown, but aXMLStreamException
was caught.Note: dummy type variable is used for convenience, to allow caller to claim that this method returns result of any necessary type.
- Throws:
IOException
-
throwAsParseException
public static <T> T throwAsParseException(XMLStreamException e, com.fasterxml.jackson.core.JsonParser p) throws IOException
- Throws:
IOException
- Since:
- 2.9
-
throwAsGenerationException
public static <T> T throwAsGenerationException(XMLStreamException e, com.fasterxml.jackson.core.JsonGenerator g) throws IOException
- Throws:
IOException
- Since:
- 2.9
-
-