public class JsonSerializer extends Object implements ODataSerializer
| Modifier and Type | Field and Description |
|---|---|
protected ContentType |
contentType |
protected boolean |
isIEEE754Compatible |
protected boolean |
isODataMetadataFull |
protected boolean |
isODataMetadataNone |
protected boolean |
serverMode |
| Constructor and Description |
|---|
JsonSerializer(boolean serverMode,
ContentType contentType) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clientLinks(Linked linked,
com.fasterxml.jackson.core.JsonGenerator jgen) |
protected void |
link(Link link,
com.fasterxml.jackson.core.JsonGenerator jgen) |
protected void |
links(Linked linked,
com.fasterxml.jackson.core.JsonGenerator jgen) |
protected void |
primitiveValue(com.fasterxml.jackson.core.JsonGenerator jgen,
EdmTypeInfo typeInfo,
Object value) |
protected void |
serverLinks(Linked linked,
com.fasterxml.jackson.core.JsonGenerator jgen) |
protected void |
valuable(com.fasterxml.jackson.core.JsonGenerator jgen,
Valuable valuable,
String name) |
<T> void |
write(Writer writer,
ResWrap<T> container) |
<T> void |
write(Writer writer,
T obj) |
protected boolean serverMode
protected ContentType contentType
protected final boolean isIEEE754Compatible
protected final boolean isODataMetadataNone
protected final boolean isODataMetadataFull
public JsonSerializer(boolean serverMode,
ContentType contentType)
public <T> void write(Writer writer, T obj) throws ODataSerializerException
write in interface ODataSerializerODataSerializerExceptionpublic <T> void write(Writer writer, ResWrap<T> container) throws ODataSerializerException
write in interface ODataSerializerODataSerializerExceptionprotected void link(Link link, com.fasterxml.jackson.core.JsonGenerator jgen) throws IOException
IOExceptionprotected void links(Linked linked, com.fasterxml.jackson.core.JsonGenerator jgen) throws IOException, EdmPrimitiveTypeException
IOExceptionEdmPrimitiveTypeExceptionprotected void clientLinks(Linked linked, com.fasterxml.jackson.core.JsonGenerator jgen) throws IOException, EdmPrimitiveTypeException
IOExceptionEdmPrimitiveTypeExceptionprotected void serverLinks(Linked linked, com.fasterxml.jackson.core.JsonGenerator jgen) throws IOException, EdmPrimitiveTypeException
IOExceptionEdmPrimitiveTypeExceptionprotected void primitiveValue(com.fasterxml.jackson.core.JsonGenerator jgen,
EdmTypeInfo typeInfo,
Object value)
throws IOException,
EdmPrimitiveTypeException
IOExceptionEdmPrimitiveTypeExceptionprotected void valuable(com.fasterxml.jackson.core.JsonGenerator jgen,
Valuable valuable,
String name)
throws IOException,
EdmPrimitiveTypeException
IOExceptionEdmPrimitiveTypeExceptionCopyright © 2023. All rights reserved.