public final class UnmarshalHelper extends Object
Constructor and Description |
---|
UnmarshalHelper() |
Modifier and Type | Method and Description |
---|---|
static XMLReader |
createXmlReader()
Create a new XmlReader instance.
|
static Object |
unmarshal(jakarta.xml.bind.JAXBContext context,
InputSource source,
XMLFilter filter,
boolean ignoreValidationErrors)
Unmarshall from an input source and apply a filter, optionally ignore validation errors.
|
static Object |
unmarshal(jakarta.xml.bind.JAXBContext context,
InputStream stream)
Unmarshal from an input stream.
|
static Object |
unmarshal(jakarta.xml.bind.JAXBContext context,
InputStream stream,
XMLFilter filter)
Unmarshall from an input stream and apply a filter.
|
public static final Object unmarshal(jakarta.xml.bind.JAXBContext context, InputStream stream) throws jakarta.xml.bind.JAXBException, SAXException, ParserConfigurationException
context
- JAXB contextstream
- input streamjakarta.xml.bind.JAXBException
SAXException
ParserConfigurationException
public static final Object unmarshal(jakarta.xml.bind.JAXBContext context, InputStream stream, XMLFilter filter) throws jakarta.xml.bind.JAXBException, SAXException, ParserConfigurationException, IOException
context
- JAXB contextstream
- input streamfilter
- XMLFilter instancejakarta.xml.bind.JAXBException
SAXException
ParserConfigurationException
IOException
public static final Object unmarshal(jakarta.xml.bind.JAXBContext context, InputSource source, XMLFilter filter, boolean ignoreValidationErrors) throws jakarta.xml.bind.JAXBException, SAXException, ParserConfigurationException, IOException
context
- JAXB contextsource
- input sourcefilter
- XMLFilter instanceignoreValidationErrors
- true if validation errors are ignoredjakarta.xml.bind.JAXBException
SAXException
ParserConfigurationException
IOException
public static final XMLReader createXmlReader() throws SAXException, ParserConfigurationException
SAXException
ParserConfigurationException
Copyright © 2000–2024 Packwood Software. All rights reserved.