public class OembedJsonParser extends Object implements OembedParser
OembedResponses. This class uses a private
ObjectMapper to ensure that the JAXB annotation introspector is
configured correctly.| Constructor and Description |
|---|
OembedJsonParser()
Creates a new OembedJsonParser.
|
| Modifier and Type | Method and Description |
|---|---|
void |
marshal(OembedResponse oembedResponse,
OutputStream out)
|
OembedResponse |
unmarshal(InputStream in)
Unmarshals an
OembedResponse from the given inputstream |
public OembedResponse unmarshal(InputStream in)
OembedParserOembedResponse from the given inputstreamunmarshal in interface OembedParserin - The inputstream to unmarshalpublic void marshal(OembedResponse oembedResponse, OutputStream out)
OembedParsermarshal in interface OembedParseroembedResponse - The oembed response that should be written to the streamout - The outputstream to write toCopyright © 2010–2016 michael-simons.eu. All rights reserved.