|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.jettison.internal.BaseJsonUnmarshaller
public class BaseJsonUnmarshaller
Base JSON marshaller implementation class.
| Field Summary | |
|---|---|
protected Unmarshaller |
jaxbUnmarshaller
|
protected JettisonConfig |
jsonConfig
|
| Constructor Summary | |
|---|---|
BaseJsonUnmarshaller(JAXBContext jaxbContext,
JettisonConfig jsonConfig)
|
|
BaseJsonUnmarshaller(Unmarshaller jaxbUnmarshaller,
JettisonConfig jsonConfig)
|
|
| Method Summary | ||
|---|---|---|
JettisonConfig |
getJSONConfiguration()
Provides information on current JSON configuration options for this object. |
|
|
unmarshalFromJSON(InputStream inputStream,
Class<T> expectedType)
Unmarshal JSON data from the specified InputStream and
return the resulting Java content tree. |
|
|
unmarshalFromJSON(Reader reader,
Class<T> expectedType)
Unmarshal JSON data from the specified Reader and
return the resulting Java content tree. |
|
|
unmarshalJAXBElementFromJSON(InputStream inputStream,
Class<T> declaredType)
Unmarshal JSON data from the InputStream by
declaredType and return the resulting content tree. |
|
|
unmarshalJAXBElementFromJSON(Reader reader,
Class<T> declaredType)
Unmarshal JSON data from the Reader by
declaredType and return the resulting content tree. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Unmarshaller jaxbUnmarshaller
protected final JettisonConfig jsonConfig
| Constructor Detail |
|---|
public BaseJsonUnmarshaller(JAXBContext jaxbContext,
JettisonConfig jsonConfig)
throws JAXBException
JAXBException
public BaseJsonUnmarshaller(Unmarshaller jaxbUnmarshaller,
JettisonConfig jsonConfig)
| Method Detail |
|---|
public JettisonConfig getJSONConfiguration()
JettisonConfigured
getJSONConfiguration in interface JettisonConfiguredJettisonConfig instance.
public <T> T unmarshalFromJSON(InputStream inputStream,
Class<T> expectedType)
throws JAXBException
JettisonUnmarshallerInputStream 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.
unmarshalFromJSON in interface JettisonUnmarshallerT - the type of the Java content tree.inputStream - 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.
public <T> T unmarshalFromJSON(Reader reader,
Class<T> expectedType)
throws JAXBException
JettisonUnmarshallerReader 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.
unmarshalFromJSON in interface JettisonUnmarshallerT - 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.
public <T> JAXBElement<T> unmarshalJAXBElementFromJSON(InputStream inputStream,
Class<T> declaredType)
throws JAXBException
JettisonUnmarshallerInputStream 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.
unmarshalJAXBElementFromJSON in interface JettisonUnmarshallerT - the type of the Java content tree.inputStream - 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.
public <T> JAXBElement<T> unmarshalJAXBElementFromJSON(Reader reader,
Class<T> declaredType)
throws JAXBException
JettisonUnmarshallerReader 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.
unmarshalJAXBElementFromJSON in interface JettisonUnmarshallerT - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||