public interface JettisonUnmarshaller
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | unmarshalFromJSON(InputStream is,
                 Class<T> expectedType)Unmarshal JSON data from the specified  InputStreamand
 return the resulting Java content tree. | 
| <T> T | unmarshalFromJSON(Reader reader,
                 Class<T> expectedType)Unmarshal JSON data from the specified  Readerand
 return the resulting Java content tree. | 
| <T> JAXBElement<T> | unmarshalJAXBElementFromJSON(InputStream is,
                            Class<T> declaredType)Unmarshal JSON data from the  InputStreambydeclaredTypeand return the resulting content tree. | 
| <T> JAXBElement<T> | unmarshalJAXBElementFromJSON(Reader reader,
                            Class<T> declaredType)Unmarshal JSON data from the  ReaderbydeclaredTypeand return the resulting content tree. | 
<T> T unmarshalFromJSON(InputStream is, Class<T> expectedType) throws JAXBException
InputStream and
 return the resulting Java content tree.
 The UTF-8 character encoding scheme will be used to decode the encoded characters of the JSON data.
T - the type of the Java content tree.is - the InputStream to unmarshal JSON data from.expectedType - the expected type of the Java content tree.XmlRootElement) or mapped to an XML type (for example,
         annotated with XmlType).JAXBException - if any unexpected errors occur while unmarshalling.UnmarshalException - if the JsonUnmarshaller is unable
         to perform the JSON to Java binding.<T> T unmarshalFromJSON(Reader reader, Class<T> expectedType) throws JAXBException
Reader and
 return the resulting Java content tree.
 
 The character encoding scheme of the reader will be used to
 encode the characters of the JSON data.
T - the type of the Java content tree.reader - the Reader to unmarshal JSON data from.expectedType - the expected type of the Java content tree.XmlRootElement) or mapped to an XML type (for example,
         annotated with XmlType).JAXBException - if any unexpected errors occur while unmarshalling.UnmarshalException - if the JsonUnmarshaller is unable
         to perform the JSON to Java binding.<T> JAXBElement<T> unmarshalJAXBElementFromJSON(InputStream is, Class<T> declaredType) throws JAXBException
InputStream by
 declaredType and return the resulting content tree.
 The UTF-8 character encoding scheme will be used to decode the encoded characters of the JSON data.
T - the type of the Java content tree.is - the InputStream to unmarshal JSON data from.declaredType - a class that is mapped to a XML root element
        (for example, annotated with XmlRootElement) or mapped to
        an XML type (for example, annotated with XmlType).JAXBElement instance.JAXBException - if any unexpected errors occur while unmarshalling.UnmarshalException - if the JsonUnmarshaller is unable
         to perform the JSON to Java binding.<T> JAXBElement<T> unmarshalJAXBElementFromJSON(Reader reader, Class<T> declaredType) throws JAXBException
Reader by
 declaredType and return the resulting content tree.
 
 The character encoding scheme of the reader will be used to
 encode the characters of the JSON data.
T - the type of the Java content tree.reader - the Reader to unmarshal JSON data from.declaredType - a class that is mapped to a XML root element
        (for example, annotated with XmlRootElement) or mapped to
        an XML type (for example, annotated with XmlType).JAXBElement instance.JAXBException - if any unexpected errors occur while unmarshalling.UnmarshalException - if the JsonUnmarshaller is unable
         to perform the JSON to Java binding.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.