public class OembedJsonParser extends Object implements OembedParser
| Constructor and Description |
|---|
OembedJsonParser() |
OembedJsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Hook to provide a custom object mapper with custom serializer / deserializer
|
| Modifier and Type | Method and Description |
|---|---|
String |
marshal(OembedResponse oembedResponse)
Marhsals the given OembedResponse to a string
|
void |
marshal(OembedResponse oembedResponse,
OutputStream outputStream) |
OembedResponse |
unmarshal(InputStream httpResponse)
Unmarshals an OembedResponse from the given inputstream
|
public OembedJsonParser()
public OembedJsonParser(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
objectMapper - public OembedResponse unmarshal(InputStream httpResponse) throws OembedException
OembedParserunmarshal in interface OembedParserOembedExceptionpublic String marshal(OembedResponse oembedResponse) throws OembedException
OembedParsermarshal in interface OembedParserOembedExceptionpublic void marshal(OembedResponse oembedResponse, OutputStream outputStream) throws OembedException
marshal in interface OembedParserOembedExceptionCopyright © 2010-2014 michael-simons.eu. All Rights Reserved.