unmarshal(new InputStreamReader(entityStream, c),
type);
return jaxbElem.getValue();
} else {
return u.unmarshal(
new JsonXmlStreamReader(
new InputStreamReader(entityStream, c),
JSONHelper.getRootElementName(type)));
}
} else {
if (u instanceof JSONUnmarshaller) {
// TODO what about the charset ?
JSONUnmarshaller ju = (JSONUnmarshaller)u;
ju.setJsonEnabled(true);
return ju.unmarshal(new StreamSource(entityStream), type).getValue();
} else {
return u.unmarshal(
new JsonXmlStreamReader(
new InputStreamReader(entityStream, c),
JSONHelper.getRootElementName(type)), type).getValue();
}
}
}