public class StringMarshaller extends Object implements JsonMarshaller<String>
| Constructor and Description |
|---|
StringMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
Class<String> |
getJavaType()
The marshalled java type
|
String |
getType()
The type name that appears in serialization
|
String |
read(org.codehaus.jackson.JsonParser jp)
Builds and returns a POJO from the JSON object
|
void |
write(org.codehaus.jackson.JsonGenerator jg,
Object value)
Writes the POJO object to the JsonGenerator
|
public StringMarshaller()
public String getType()
JsonMarshallergetType in interface JsonMarshaller<String>public Class<String> getJavaType()
JsonMarshallergetJavaType in interface JsonMarshaller<String>public String read(org.codehaus.jackson.JsonParser jp) throws IOException
JsonMarshallerread in interface JsonMarshaller<String>IOExceptionpublic void write(org.codehaus.jackson.JsonGenerator jg, Object value) throws IOException
JsonMarshallerwrite in interface JsonMarshaller<String>IOExceptionCopyright © 2017 Nuxeo. All rights reserved.